Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
| toh:f-secure:sense [2022/10/24 08:08] – [OpenWrt bootlog] plappermaul | toh:f-secure:sense [2022/11/01 20:48] – [PCIe infos] plappermaul | ||
|---|---|---|---|
| Line 6: | Line 6: | ||
| * [[https:// | * [[https:// | ||
| * [[https:// | * [[https:// | ||
| + | * Initial PR https:// | ||
| + | ===== 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:// | ||
| ===== 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 ==== | ||
| + | |||
| + | < | ||
| + | root@OpenWrt:/# | ||
| + | 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 | ||
| + | </ | ||
| + | |||
| + | ==== PCIe infos ==== | ||
| + | |||
| + | < | ||
| + | root@OpenWrt:/# | ||
| + | 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 | ||
| + | </ | ||
| ==== Photos ==== | ==== Photos ==== | ||
| Line 28: | Line 60: | ||
| ==== Building ==== | ==== Building ==== | ||
| - | Currently only compiling | + | Ensure that you use patches |
| < | < | ||
| - | cp build_dir/ | + | [plappermaul@fedora rtl8198c]$ ls -al bin/ |
| + | total 19752 | ||
| + | drwxr-xr-x. 3 plappermaul plappermaul | ||
| + | drwxr-xr-x. 5 plappermaul plappermaul | ||
| + | -rw-r--r--. 1 plappermaul plappermaul | ||
| + | -rw-r--r--. 1 plappermaul plappermaul | ||
| + | -rw-r--r--. 1 plappermaul plappermaul | ||
| + | -rw-r--r--. 1 plappermaul plappermaul | ||
| + | -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 | ||
| + | -rw-r--r--. 1 plappermaul plappermaul | ||
| + | -rw-r--r--. 1 plappermaul plappermaul | ||
| + | -rw-r--r--. 1 plappermaul plappermaul | ||
| + | </ | ||
| + | ==== Initramfs boot using serial console and TFTP ==== | ||
| + | |||
| + | Rename initramfs image to nfjrom. This is essential because the filename triggers the kernel jump/ | ||
| + | |||
| + | < | ||
| + | cp build_dir/ | ||
| </ | </ | ||
| - | ==== 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 43: | Line 93: | ||
| < | < | ||
| Changing status of the tftpd to 1 | Changing status of the tftpd to 1 | ||
| + | < | ||
| + | Set TFTP Load Addr 0x84000000 | ||
| </ | </ | ||
| Line 51: | Line 103: | ||
| </ | </ | ||
| - | After upload system will automatically jump to start address of image | + | After upload |
| < | < | ||
| < | < | ||
| - | **TFTP Client Upload, File Name: nfjrom | + | TFTP Client Upload, File Name: nfjrom |
| - | ....... | + | - |
| - | **TFTP Client Upload File Size = 007F1D8C | + | TFTP Client Upload File Size = 002EF850 |
| Success! | Success! | ||
| - | < | + | < |
| </ | </ | ||
| Line 510: | Line 562: | ||
| ==== OpenWrt bootlog ==== | ==== OpenWrt bootlog ==== | ||
| + | |||
| + | Current master build with https:// | ||
| <WRAP bootlog> | <WRAP bootlog> | ||
| - | <RealTek> | + | <nowiki> |
| - | **TFTP Client Upload, File Name: nfjrom | + | < |
| - | - | + | |
| - | **TFTP Client Upload File Size = 001CFA30 Bytes at A0500000 | + | |
| - | + | ||
| - | Success! | + | |
| - | < | + | |
| - | OpenWrt kernel loader for Mips board | + | OpenWrt kernel loader for MIPS based SoC |
| - | Copyright (C) 2011 Gabor Juhos < | + | Copyright (C) 2011 Gabor Juhos |
| Decompressing kernel... done! | Decompressing kernel... done! | ||
| Starting kernel at 80000000... | Starting kernel at 80000000... | ||
| - | [ 0.000000] Linux version | + | [ 0.000000] Linux version |
| - | [ 0.000000] | + | [ 0.000000] |
| - | [ 0.000000] | + | [ 0.000000] RTL839X model is 0 |
| - | [ 0.000000] | + | [ 0.000000] RTL93XX model is 0 |
| + | [ 0.000000] RTL819X model is 8198c001 | ||
| + | [ 0.000000] SoC Type: RTL8198C | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] Kernel command line: | ||
| + | [ 0.000000] | ||
| + | [ 0.000000] MIPS: machine is F-Secure Sense | ||
| [ 0.000000] Initrd not found or empty - disabling initrd | [ 0.000000] Initrd not found or empty - disabling initrd | ||
| + | [ 0.000000] Using appended Device Tree. | ||
| + | [ 0.000000] VPE topology {1,1} total 2 | ||
| + | [ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. | ||
| + | [ 0.000000] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes | ||
| + | [ 0.000000] MIPS secondary cache 512kB, 8-way, linesize 32 bytes. | ||
| [ 0.000000] Zone ranges: | [ 0.000000] Zone ranges: | ||
| - | [ 0.000000] | + | [ 0.000000] |
| [ 0.000000] Movable zone start for each node | [ 0.000000] Movable zone start for each node | ||
| [ 0.000000] Early memory node ranges | [ 0.000000] Early memory node ranges | ||
| - | [ 0.000000] | + | [ 0.000000] |
| - | [ 0.000000] | + | [ 0.000000] |
| - | [ | + | [ 0.000000] |
| - | [ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes | + | [ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: |
| - | [ 0.000000] MIPS secondary cache 512kB, 8-way, linesize 32 bytes. | + | [ 0.000000] Kernel command line: console=ttyS0, |
| - | [ 0.000000] | + | [ 0.000000] Dentry cache hash table entries: |
| - | [ 0.000000] Built 1 zonelists | + | [ 0.000000] Inode-cache hash table entries: |
| - | [ 0.000000] Kernel command line: | + | |
| - | [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes) | + | |
| - | [ 0.000000] Dentry cache hash table entries: | + | |
| - | [ 0.000000] Inode-cache hash table entries: | + | |
| [ 0.000000] Writing ErrCtl register=00000000 | [ 0.000000] Writing ErrCtl register=00000000 | ||
| [ 0.000000] Readback ErrCtl register=00000000 | [ 0.000000] Readback ErrCtl register=00000000 | ||
| - | [ 0.000000] Memory: | + | [ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off |
| - | [ 0.000000] SLUB: HWalign=64, Order=0-3, MinObjects=0, | + | [ 0.000000] Memory: |
| - | [ 0.000000] Hierarchical RCU implementation. | + | [ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, |
| - | [ 0.000000] | + | [ 0.000000] |
| - | [ 0.000000] NR_IRQS:128 | + | [ 0.000000] |
| - | [ 0.000000] | + | [ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 10 jiffies. |
| - | [ 0.000000] | + | [ 0.000000] NR_IRQS: |
| - | [ 0.000000] | + | [ 0.000000] |
| - | [ 0.280000] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464) | + | [ 0.000000] |
| - | [ 0.350000] pid_max: default: 32768 minimum: 301 | + | [ 0.000000] |
| - | [ 0.360000] Mount-cache hash table entries: | + | [ |
| - | [ 0.370000] Brought | + | [ 0.000041] clocksource: |
| - | [ 0.380000] NET: Registered protocol family 16 | + | [ 0.000184] Calibrating delay loop... 498.89 BogoMIPS (lpj=2494464) |
| - | [ 0.390000] INFO: initializing USB devices | + | [ 0.060029] pid_max: default: 32768 minimum: 301 |
| - | [ 0.590000] UPHY: 8198c ASIC u3 of u3 25M phy patch | + | [ 0.060160] Mount-cache hash table entries: |
| - | [ | + | [ 0.060174] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes, linear) |
| - | [ | + | [ 0.061454] Using only one core due to dcache aliasing |
| - | [ | + | [ 0.062220] Performance counters: mips/1074K PMU enabled, 4 32-bit counters available to each CPU, irq 7 |
| - | [ | + | [ 0.062373] rcu: Hierarchical SRCU implementation. |
| - | [ | + | [ 0.062580] dyndbg: Ignore empty _ddebug table in a CONFIG_DYNAMIC_DEBUG_CORE build |
| - | [ | + | [ 0.062764] smp: Bringing |
| - | [ | + | [ 0.064132] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes. |
| - | [ | + | [ 0.064139] Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes |
| - | [ | + | [ 0.064147] MIPS secondary cache 512kB, 8-way, linesize 32 bytes. |
| - | [ | + | [ 0.064216] CPU1 revision is: 00019a24 (MIPS 1074Kc) |
| - | [ | + | [ 0.123414] Synchronize counters for CPU 1: done. |
| - | [ 5.110000] UDP hash table entries: 256 (order: 1, 8192 bytes) | + | [ 0.123545] smp: Brought up 1 node, 2 CPUs |
| - | [ | + | [ 0.124666] clocksource: |
| - | [ | + | [ 0.124691] futex hash table entries: 512 (order: 2, 16384 bytes, linear) |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ 5.230000] io scheduler noop registered | + | [ |
| - | [ 5.250000] io scheduler deadline registered (default) | + | [ |
| - | [ 5.260000] Serial: 8250/16550 driver, | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ 0.154821] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) |
| - | [ | + | [ 0.154889] TCP established hash table entries: |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ 0.367170] squashfs: version 4.0 (2009/ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ 0.369639] 18002000.uart: ttyS0 at MMIO 0x18002000 (irq = 13, base_baud = 12500000) is a 16550A |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ 6.730000] hub 2-0:1.0: USB hub found | + | [ |
| - | [ 6.740000] hub 2-0:1.0: 1 port detected | + | [ |
| - | [ 6.750000] usbcore: registered new interface driver usb-storage | + | [ |
| - | [ 6.770000] -------8196D OTG init | + | [ |
| - | [ 6.980000] dwc_otg: version 2.60a 22-NOV-2006 | + | [ |
| - | [ 7.000000] | + | [ |
| - | [ | + | 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 |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ 7.300000] dwc_otg logicmodule: | + | [ |
| - | [ | + | [ |
| - | [ 7.320000] DWC_otg: Init: Port Power? op_state=1 | + | Please press Enter to activate this console. |
| - | [ | + | [ 6.093303] kmodloader: loading kernel modules from / |
| - | [ 7.360000] hub 3-0:1.0: USB hub found | + | [ 6.119854] NET: Registered protocol family 38 |
| - | [ 7.370000] hub 3-0:1.0: 1 port detected | + | [ 6.139330] urngd: v1.0.2 started. |
| - | [ 7.380000] | + | [ 6.154609] cryptodev: driver 1.12 loaded. |
| - | [ 7.400000] rtl819x-wdt rtl819x-wdt: Initialized | + | [ |
| - | [ 7.420000] TCP: westwood registered | + | [ |
| - | [ 7.430000] NET: Registered protocol family 17 | + | [ |
| - | [ 7.440000] 8021q: 802.1Q VLAN Support v1.8 | + | [ |
| - | [ 7.460000] List of all partitions: | + | [ |
| - | [ 7.470000] 1f00 384 mtdblock0 | + | [ |
| - | [ 7.490000] 1f01 1216 mtdblock1 | + | [ |
| - | [ 7.510000] 1f02 2880 mtdblock2 | + | [ |
| - | [ 7.520000] No filesystem could mount root, tried: | + | |
| - | [ 7.540000] Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(31, | + | BusyBox v1.35.0 (2022-10-26 07:59:38 UTC) built-in shell (ash) |
| - | [ 7.540000] System halted. | + | |
| + | | ||
| + | | ||
| + | | | ||
| + | |_______|| | ||
| + | |__| W I R E L E S S F R E E D O M | ||
| + | | ||
| + | | ||
| + | ----------------------------------------------------- | ||
| + | === WARNING! ===================================== | ||
| + | There is no root password defined | ||
| + | Use the " | ||
| + | in order to prevent unauthorized SSH logins. | ||
| + | -------------------------------------------------- | ||
| + | </ | ||
| </ | </ | ||