Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revisionBoth sides next revision
toh:f-secure:sense [2022/10/27 07:42] – [OpenWrt bootlog] plappermaultoh:f-secure:sense [2022/11/01 20:48] – [PCIe infos] plappermaul
Line 6: Line 6:
   * [[https://github.com/plappermaul/rtl8198c-loader| Bootlader for RTL8198C devices]]   * [[https://github.com/plappermaul/rtl8198c-loader| Bootlader for RTL8198C devices]]
   * [[https://github.com/plappermaul/rtl8198c-rtk|RTK for RTL8198C devices]]   * [[https://github.com/plappermaul/rtl8198c-rtk|RTK for RTL8198C devices]]
 +  * Initial PR https://github.com/openwrt/openwrt/pull/11094 
  
 +===== Current state =====
 +
 +  * add initial build option in realtek tree: done
 +  * GIC enabling: done
 +  * Serial console access: done
 +  * 2 Core SMP: done
 +  * USB support: done (new xHCI driver)
 +  * PCIE support: TODO
 +  * chip network driver: TODO
 +  * switch driver: TODO
 +  * SPI driver: TODO
 +  * MTD NAND driver: TODO
 +  * I2C driver [[https://github.com/iptime-gpl/userapps_extg/blob/587f2e4ce2289e10f3946f034d0ed42b83b3b22a/linux/linux-3.10/drivers/i2c/busses/i2c-rtl8198c.c|TODO]]
 ===== Hardware ===== ===== Hardware =====
  
Line 12: Line 26:
  
 Realtek RTL8198C dual core SoC with 512 MB RAM and 1024 MB Flash. Realtek RTL8198C dual core SoC with 512 MB RAM and 1024 MB Flash.
 +
 +==== USB infos ====
 +
 +<code>
 +root@OpenWrt:/# lsusb
 +Bus 001 Device 001: ID 1d6b:0002 - Linux Foundation 2.0 root hub
 +Bus 002 Device 001: ID 1d6b:0003 - Linux Foundation 3.0 root hub
 +</code>
 +
 +==== PCIe infos ====
 +
 +<code>
 +root@OpenWrt:/# lspci
 +00:00.0 Class 0604: 10ec:8198
 +03:00.0 Class 0280: 10ec:8813 - RTL8813AE 802.11ac PCIe Wireless Network Adapter
 +02:00.0 Class 0604: 10ec:8198
 +01:00.0 Class 0280: 10ec:8813 - RTL8813AE 802.11ac PCIe Wireless Network Adapter
 +</code>
 ==== Photos ==== ==== Photos ====
  
Line 28: Line 60:
 ==== Building ==== ==== Building ====
  
-Currently only compiling from above old repository is possibleBest way is to install an old Fedora 21 VMClone the repo and build OpenWrtAfterwards rename the LZMA Loader + Linux Image so that the bootlader can work with it.+Ensure that you use patches from https://github.com/openwrt/openwrt/pull/11094. Uncomment TARGET_DEVICES line from target/linux/realtek/image/rtl8198c.mk. Run make menuconfig and select target realtek plus subtarget rtl8198c with device F-Secure Sense. Afterwards run make to build the initramfs image. 
 + 
 +<code> 
 +[plappermaul@fedora rtl8198c]$ ls -al bin/targets/realtek/rtl8198c 
 +total 19752 
 +drwxr-xr-x. 3 plappermaul plappermaul     4096 21. Okt 13:07 . 
 +drwxr-xr-x. 5 plappermaul plappermaul     4096 21. Okt 11:14 .. 
 +-rw-r--r--. 1 plappermaul plappermaul     1311 27. Okt 08:59 config.buildinfo 
 +-rw-r--r--. 1 plappermaul plappermaul      288 27. Okt 08:59 feeds.buildinfo 
 +-rw-r--r--. 1 plappermaul plappermaul  9174526 27. Okt 09:00 openwrt-realtek-rtl8198c-f-secure_sense-initramfs-kernel.bin 
 +-rw-r--r--. 1 plappermaul plappermaul     2868 27. Okt 09:00 openwrt-realtek-rtl8198c-f-secure_sense.manifest 
 +-rw-r--r--. 1 plappermaul plappermaul 11010853 27. Okt 09:00 openwrt-realtek-rtl8198c-f-secure_sense-squashfs-sysupgrade.bin 
 +drwxr-xr-x. 2 plappermaul plappermaul     4096 27. Okt 08:43 packages 
 +-rw-r--r--. 1 plappermaul plappermaul     1298 27. Okt 09:01 profiles.json 
 +-rw-r--r--. 1 plappermaul plappermaul      701 27. Okt 09:01 sha256sums 
 +-rw-r--r--. 1 plappermaul plappermaul       18 27. Okt 08:59 version.buildinfo 
 +</code> 
 +==== Initramfs boot using serial console and TFTP ==== 
 + 
 +Rename initramfs image to nfjromThis is essential because the filename triggers the kernel jump/initialization sequence
  
 <code> <code>
 cp build_dir/target_mips_24kec_uClibc-0.9.33.2/linux-rtkmips_rtl8198c/loader-rtl8198c-AP-initramfs.bin nfjrom cp build_dir/target_mips_24kec_uClibc-0.9.33.2/linux-rtkmips_rtl8198c/loader-rtl8198c-AP-initramfs.bin nfjrom
 </code> </code>
-==== Installation using serial console and TFTP ==== 
  
 In Sense bootloader enable TFTP and disable auto flashing In Sense bootloader enable TFTP and disable auto flashing
Line 53: Line 103:
 </code> </code>
  
-After upload system will automatically jump to start address of image+After upload finishes system will automatically jump to the start address of the image, execute the lzma loader and fire up the kernel.
  
 <code> <code>
Line 513: Line 563:
 ==== OpenWrt bootlog ==== ==== OpenWrt bootlog ====
  
-Current master build. Config & patches will be uploaded.+Current master build with https://github.com/openwrt/openwrt/pull/11094 
  
 <WRAP bootlog> <WRAP bootlog>
 +<nowiki>
 <RealTek>Jump to 0x84000000 <RealTek>Jump to 0x84000000
  
Line 619: Line 670:
 [    2.814185] random: jshn: uninitialized urandom read (4 bytes read) [    2.814185] random: jshn: uninitialized urandom read (4 bytes read)
 [    2.901180] random: jshn: uninitialized urandom read (4 bytes read) [    2.901180] random: jshn: uninitialized urandom read (4 bytes read)
-ls: /sys/class/net/lan*: No such file or directory 
-BusyBox v1.35.0 (2022-10-09 19:29:23 UTC) multi-call binary. 
- 
-Usage: basename FILE [SUFFIX] | -a FILE... | -s SUFFIX FILE... 
- 
-Strip [    2.983033] random: jshn: uninitialized urandom read (4 bytes read) 
-directory path and SUFFIX from FILE 
- 
-        -a              All arguments are FILEs 
-        -s SUFFIX       Remove SUFFIX (implies -a) 
-mtd_get_mac_ascii: partition u-boot-env2 not found! 
-mtd_get_mac_ascii: partition u-boot-env2 not found! 
-mtd_get_mac_ascii: partition u-boot-env not found! 
-sh: out of range 
 Press the [f] key and hit [enter] to enter failsafe mode Press the [f] key and hit [enter] to enter failsafe mode
 Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
Line 654: Line 691:
 [    6.297648] random: crng init done [    6.297648] random: crng init done
 [    6.331122] random: 19 urandom warning(s) missed due to ratelimiting [    6.331122] random: 19 urandom warning(s) missed due to ratelimiting
 +
 +BusyBox v1.35.0 (2022-10-26 07:59:38 UTC) built-in shell (ash)
 +
 +  _______                     ________        __
 +       |.-----.-----.-----.|  |  |  |.----.|  |_
 +     ||  _  |  -__|     ||  |  |  ||   _||   _|
 + |_______||   __|_____|__|__||________||__|  |____|
 +          |__| W I R E L E S S   F R E E D O M
 + -----------------------------------------------------
 + OpenWrt SNAPSHOT, r21112-eb456aedfe
 + -----------------------------------------------------
 +=== WARNING! =====================================
 +There is no root password defined on this device!
 +Use the "passwd" command to set up a new password
 +in order to prevent unauthorized SSH logins.
 +--------------------------------------------------
 +</nowiki>
 </WRAP> </WRAP>
  
  • Last modified: 2022/11/02 07:25
  • by plappermaul