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 10:53] – [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 |
| + | |||
| + | < | ||
| + | [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 | ||
| + | |||
| + | Rename initramfs image to nfjrom. This is essential because | ||
| < | < | ||
| cp build_dir/ | 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 53: | Line 103: | ||
| </ | </ | ||
| - | After upload system will automatically jump to start address of image | + | After upload |
| < | < | ||
| Line 512: | Line 562: | ||
| ==== OpenWrt bootlog ==== | ==== OpenWrt bootlog ==== | ||
| + | |||
| + | Current master build with https:// | ||
| <WRAP bootlog> | <WRAP bootlog> | ||
| + | < | ||
| < | < | ||
| - | 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.280000] io scheduler noop registered | + | [ |
| - | [ 5.300000] io scheduler deadline registered (default) | + | [ |
| - | [ 5.310000] Serial: 8250/16550 driver, | + | [ |
| - | [ | + | [ |
| - | [ 5.360000] SPI INIT | + | [ |
| - | [ | + | [ |
| - | [ 5.390000] |No chipID | + | [ 0.154821] tcp_listen_portaddr_hash hash table entries: 512 (order: 0, 6144 bytes, linear) |
| - | [ 5.420000] | 0 0h 16h 1000000h | + | [ 0.154889] TCP established hash table entries: |
| - | [ 5.450000] | + | [ |
| - | [ 5.480000] SPI flash(UNKNOWN) was found at CS0, size 0x1000000 | + | [ |
| - | [ 5.770000] Creating 3 MTD partitions on " | + | [ |
| - | [ 5.780000] 0x000000000000-0x000000060000 : " | + | [ |
| - | [ 5.800000] 0x000000030000-0x000000160000 : " | + | [ |
| - | [ 5.820000] 0x000000130000-0x000000400000 : " | + | [ |
| - | [ 5.830000] mtd: device 2 (rootfs) set to be root filesystem | + | [ 0.367170] squashfs: version 4.0 (2009/ |
| - | [ 5.850000] mtdsplit: no squashfs found in " | + | [ |
| - | [ 5.870000] | + | [ |
| - | [ 5.870000] Probing RTL819X NIC-kenel stack size order[1]... | + | [ |
| - | [ 6.610000] eth0 added. vid=9 Member port 0x10f... | + | [ 0.369639] 18002000.uart: ttyS0 at MMIO 0x18002000 |
| - | [ 6.620000] eth1 added. vid=8 Member port 0x10... | + | [ 1.952015] printk: console |
| - | [ | + | [ 1.967468] usbcore: registered new interface driver usb-storage |
| - | [ 6.660000] xhci-hcd xhci-hcd: xHCI Host Controller | + | [ |
| - | [ 6.670000] xhci-hcd xhci-hcd: new USB bus registered, assigned bus number | + | [ 2.003933] Segment Routing with IPv6 |
| - | [ 6.700000] xhci-hcd xhci-hcd: irq 42, io mem 0x18040000 | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ 6.740000] xhci-hcd xhci-hcd: xHCI Host Controller | + | [ |
| - | [ 6.760000] xhci-hcd xhci-hcd: new USB bus registered, assigned bus number 2 | + | [ |
| - | [ 6.780000] hub 2-0:1.0: USB hub found | + | [ |
| - | [ 6.790000] hub 2-0:1.0: 1 port detected | + | [ |
| - | [ 6.800000] usbcore: registered new interface driver usb-storage | + | [ |
| - | [ | + | [ |
| - | [ | + | [ |
| - | [ 7.050000] [S0] lmdev=92d0bb00 | + | [ |
| - | [ | + | |
| - | [ | + | |
| - | [ 7.290000] | + | |
| - | [ 7.300000] DWC_otg: Using DMA mode | + | |
| - | [ | + | |
| - | [ | + | |
| - | [ 7.350000] dwc_otg logicmodule: | + | |
| - | [ | + | |
| - | [ | + | |
| - | [ | + | |
| - | [ 7.410000] hub 3-0:1.0: USB hub found | + | |
| - | [ | + | |
| - | [ | + | |
| - | [ 7.450000] rtl819x-wdt rtl819x-wdt: Initialized | + | |
| - | [ | + | |
| - | [ 7.480000] NET: Registered protocol family 17 | + | |
| - | [ | + | |
| - | [ 7.530000] Freeing unused kernel memory: 4424K (8039e000 - 807f0000) | + | |
| - | procd: Console is alive | + | |
| - | procd: - watchdog - | + | |
| - | procd: - preinit - | + | |
| 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 | ||
| - | [ | + | [ |
| - | [ 10.050000] usb 3-1: No LPM exit latency info found. | + | [ 5.665332] procd: - ubus - |
| - | procd: - early - | + | [ 5.679638] random: ubusd: uninitialized urandom read (4 bytes read) |
| - | procd: - watchdog - | + | [ 5.725020] random: ubusd: uninitialized urandom read (4 bytes read) |
| - | procd: - ubus - | + | [ 5.746277] random: ubusd: uninitialized urandom read (4 bytes read) |
| - | procd: - init - | + | [ 5.768441] |
| Please press Enter to activate this console. | Please press Enter to activate this console. | ||
| - | [ 11.710000] NET: Registered protocol family 10 | + | [ 6.093303] kmodloader: loading kernel modules from / |
| - | [ 11.730000] nf_conntrack version 0.5.0 (5013 buckets, 20052 max) | + | [ 6.119854] NET: Registered protocol family 38 |
| - | [ 11.750000] ip6_tables: (C) 2000-2006 Netfilter Core Team | + | [ 6.139330] urngd: v1.0.2 started. |
| - | [ 11.770000] CPU 0 Unable to handle kernel paging request at virtual address 00000040, epc == 00000040, ra == 801b5370 | + | [ 6.154609] cryptodev: driver 1.12 loaded. |
| - | [ | + | [ 6.170604] GACT probability on |
| - | [ 11.810000] CPU: 0 PID: 445 Comm: kmodloader Not tainted 3.10.49 #12 | + | [ 6.182269] Mirror/ |
| - | [ 11.810000] task: 92c6c000 ti: 93a08000 task.ti: 93a08000 | + | [ 6.202201] u32 classifier |
| - | [ | + | [ 6.211179] input device check on |
| - | [ | + | [ |
| - | [ | + | [ 6.297292] kmodloader: done loading kernel modules from / |
| - | [ | + | [ 6.297648] random: crng init done |
| - | [ 11.810000] $16 : 8038f180 93a09d90 93936398 9393639c | + | [ 6.331122] random: 19 urandom warning(s) missed due to ratelimiting |
| - | [ 11.810000] $20 : 9386722c 00000000 80390000 00000000 | + | |
| - | [ 11.810000] $24 : 00000003 802b23c4 | + | BusyBox v1.35.0 (2022-10-26 07:59:38 UTC) built-in shell (ash) |
| - | [ 11.810000] $28 : 93a08000 93a09d58 939364e0 801b5370 | + | |
| - | [ 11.810000] Hi : 00000000 | + | |
| - | [ 11.810000] Lo : 00000000 | + | | |.-----.-----.-----.| | | |.----.| |_ |
| - | [ 11.810000] epc : 00000040 0x40 | + | | |
| - | [ | + | |_______|| |
| - | [ 11.810000] ra | + | |__| W I R E L E S S |
| - | [ 11.810000] Status: 10009c03 KERNEL EXL IE | + | ----------------------------------------------------- |
| - | [ 11.810000] Cause : 00800008 | + | OpenWrt SNAPSHOT, r21112-eb456aedfe |
| - | [ | + | ----------------------------------------------------- |
| - | [ 11.810000] PrId | + | === WARNING! ===================================== |
| - | [ | + | There is no root password defined on this device! |
| - | [ | + | Use the " |
| - | [ | + | in order to prevent unauthorized SSH logins. |
| - | | + | -------------------------------------------------- |
| - | 80390000 802b23ec 938f7680 938f7600 93930000 00000000 93930000 93930000 | + | </ |
| - | 00000000 9393706c 00000000 00000000 80390000 9386722c 00000000 80800000 | + | |
| - | 93937008 00000000 80390000 800cbc30 00000004 93a09ee0 939364a4 93936498 | + | |
| - | | + | |
| - | [ 11.810000] Call Trace: | + | |
| - | [ 11.810000] [< | + | |
| - | [ 11.810000] [< | + | |
| - | [ | + | |
| - | [ | + | |
| - | [ | + | |
| - | [ | + | |
| - | [ | + | |
| - | [ | + | |
| - | [ | + | |
| - | [ | + | |
| - | [ | + | |
| - | [ | + | |
| - | [ | + | |
| - | [ | + | |
| - | [ 11.810000] | + | |
| - | [ | + | |
| - | Code: (Bad address in epc) | + | |
| - | [ | + | |
| - | [ | + | |
| </ | </ | ||