Kernel 4.9(.20) on Kirkwood
This page refers to this commit
Things are only run-tested for kirkwood-dockstar
Open questions, besides testing everything
- DTS: compatible string for NSA310S is really nsa3*2*0s, or is this a typo?
- NSA310S can't be selected in make menuconfig, so why is there a patch for the device's DTS at all?
Patches
100-find_active_root
Just refreshing.
110-ib62x0
No changes.
130-iconnect
Just refreshing.
140-dockstar
No changes.
160-ea4500
Drop this patch, since DTS is included in kernel 4.9.
Although, using the upstream DTS brings some changes (onle relevant ones here):
- Model name was changed → adapt in /lib/kirkwood.sh for model detection
- chosen was changed:
chosen {
- bootargs = "console=ttyS0,115200n8 earlyprintk";
+ stdout-path = "serial0:115200n8";
}
- mvsw61xx / marvell,88e6171 switch was removed, instead dsa / marvell,dsa was introduced. As a consequence:
- eth1 port was disabled, since:
/* eth1 is connected to the switch at port 6. However DSA only supports a
* single CPU port. So leave this port disabled to avoid confusion.
*/
- Due to above reason, /etc/board.d/02_network also has no switch port 6 any more
- Kernel partition sizes were changed from 1a0.0000 to 2a.0000 to not have overlapping kernel and rootfs
- Partition names were changed from <kernel1, kernel2, rootfs1, rootfs2> to <kernel, alt_kernel, rootfs, alt_rootfs>
This is then adapted in /lib/upgrade/linksys.sh (in consequence, also linksys-audi is affected in next patch)
170-ea3500
linksys-audi rewritten to match the style of already upstream linksys-viper.
Basically, all things mentioned above also apply here as well.
180-goflexhome
Refresh, and replace constants by GPIO_ACTIVE_LOW
181-goflexnet
No changes.
190-zyxel-nsa3xx-common-nand-partitions
Just refreshing.
191-nsa310b
Is now derived from upstream nsa310a → drop some parts of dts.
192-nsa310s
Rewritten to include kirkwood-nsa3x0-common.dtsi
Should the compatible string really be nsa3*2*0s ?
Based on kirkwood-nsa-3*.dts - not tested at all!
194-nsa325
Has been merged upstream. Some LEDs have been renamed (no change on LEDE necessary).
Just keep the default LED triggers.
200-disable-tso
Just refreshing.
config-4.9
Copy'n'pasted from different 4.9 targets.
Bootlog on Dockstar
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Linux version 4.9.20 (lede@debian-compiler) (gcc version 5.4.0 (LEDE GCC 5.4.0 r3422+86-f938de7) ) #0 Tue Mar 28 08:39:58 2017
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] OF: fdt:Machine model: Seagate FreeAgent Dockstar
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] On node 0 totalpages: 32768
[ 0.000000] free_area_init_node: node 0, pgdat c053967c, node_mem_map c7efa000
[ 0.000000] Normal zone: 256 pages used for memmap
[ 0.000000] Normal zone: 0 pages reserved
[ 0.000000] Normal zone: 32768 pages, LIFO batch:7
[ 0.000000] pcpu-alloc: s0 r0 d32768 u32768 alloc=1*32768
[ 0.000000] pcpu-alloc: [0] 0
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:0xe0000@0x0(uboot),0x20000@0xe0000(uboot_env),0x100000@0x100000(second_stage_uboot),-@0x200000(ubi)
[ 0.000000] PID hash table entries: 512 (order: -1, 2048 bytes)
[ 0.000000] Dentry cache hash table entries: 16384 (order: 4, 65536 bytes)
[ 0.000000] Inode-cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Memory: 124288K/131072K available (3929K kernel code, 143K rwdata, 1072K rodata, 168K init, 208K bss, 6784K reserved, 0K cma-reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xfff00000 (3072 kB)
[ 0.000000] vmalloc : 0xc8800000 - 0xff800000 ( 880 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc03de660 (3930 kB)
[ 0.000000] .init : 0xc04ec000 - 0xc0516000 ( 168 kB)
[ 0.000000] .data : 0xc0516000 - 0xc0539ca0 ( 144 kB)
[ 0.000000] .bss : 0xc0539ca0 - 0xc056ddac ( 209 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS:16 nr_irqs:16 16
[ 0.000000] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 0.000007] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 0.000086] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[ 0.090091] pid_max: default: 32768 minimum: 301
[ 0.090201] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.090218] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.090802] CPU: Testing write buffer coherency: ok
[ 0.091152] Setting up static identity map for 0x81e0 - 0x821c
[ 0.091400] mvebu-soc-id: MVEBU SoC ID=0x6281, Rev=0x2
[ 0.095987] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.096013] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.096094] pinctrl core: initialized pinctrl subsystem
[ 0.097046] NET: Registered protocol family 16
[ 0.097431] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 0.098827] cpuidle: using governor ladder
[ 0.099165] Feroceon L2: Enabling L2
[ 0.099208] Feroceon L2: Cache support initialised.
[ 0.099486] [Firmware Info]: /ocp@f1000000/ethernet-controller@72000/ethernet0-port@0: local-mac-address is not set
[ 0.118395] SCSI subsystem initialized
[ 0.118810] libata version 3.00 loaded.
[ 0.119111] usbcore: registered new interface driver usbfs
[ 0.119197] usbcore: registered new interface driver hub
[ 0.119263] usbcore: registered new device driver usb
[ 0.121268] clocksource: Switched to clocksource orion_clocksource
[ 0.122208] NET: Registered protocol family 2
[ 0.122753] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.122778] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.122797] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.122855] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.122876] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.123014] NET: Registered protocol family 1
[ 0.123045] PCI: CLS 0 bytes, default 32
[ 0.124171] Crashlog allocated RAM at address 0x3f00000
[ 0.125249] workingset: timestamp_bits=30 max_order=15 bucket_order=0
[ 0.133194] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 0.133207] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 0.140336] io scheduler noop registered
[ 0.140350] io scheduler deadline registered (default)
[ 0.141614] kirkwood-pinctrl f1010000.pin-controller: registered pinctrl driver
[ 0.174537] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 0.175518] console [ttyS0] disabled
[ 0.175589] f1012000.serial: ttyS0 at MMIO 0xf1012000 (irq = 25, base_baud = 12500000) is a 16550A
[ 0.621261] console [ttyS0] enabled
[ 0.626164] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[ 0.632585] nand: Micron MT29F2G08AAD
[ 0.636260] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 0.643889] Scanning device for bad blocks
[ 0.653010] Bad eraseblock 65 at 0x000000820000
[ 0.695068] Bad eraseblock 558 at 0x0000045c0000
[ 0.813133] 4 cmdlinepart partitions found on MTD device orion_nand
[ 0.819423] Creating 4 MTD partitions on "orion_nand":
[ 0.824605] 0x000000000000-0x0000000e0000 : "uboot"
[ 0.831243] 0x0000000e0000-0x000000100000 : "uboot_env"
[ 0.837653] 0x000000100000-0x000000200000 : "second_stage_uboot"
[ 0.844824] 0x000000200000-0x000010000000 : "ubi"
[ 0.852250] libphy: Fixed MDIO Bus: probed
[ 0.856608] libphy: orion_mdio_bus: probed
[ 0.860736] [Firmware Warn]: /ocp@f1000000/mdio-bus@72004/ethernet-phy@0: Whitelisted compatible string. Please remove
[ 0.872543] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 0.880926] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:__:__:__
[ 0.889741] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 0.896315] ehci-pci: EHCI PCI platform driver
[ 0.900844] ehci-orion: EHCI orion driver
[ 0.905039] orion-ehci f1050000.ehci: EHCI Host Controller
[ 0.910575] orion-ehci f1050000.ehci: new USB bus registered, assigned bus number 1
[ 0.918413] orion-ehci f1050000.ehci: irq 29, io mem 0xf1050000
[ 0.951283] orion-ehci f1050000.ehci: USB 2.0 started, EHCI 1.00
[ 0.958009] hub 1-0:1.0: USB hub found
[ 0.961980] hub 1-0:1.0: 1 port detected
[ 0.966382] usbcore: registered new interface driver usb-storage
[ 0.972863] rtc-mv f1010300.rtc: rtc core: registered f1010300.rtc as rtc0
[ 0.979817] i2c /dev entries driver
[ 0.984015] orion_wdt: Initial timeout 21 sec
[ 0.992369] marvell-cesa f1030000.crypto: CESA device successfully registered
[ 1.000346] NET: Registered protocol family 10
[ 1.006464] NET: Registered protocol family 17
[ 1.010967] 8021q: 802.1Q VLAN Support v1.8
[ 1.017908] UBI: auto-attach mtd3
[ 1.021074] ubi0: attaching mtd3
[ 1.321439] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 1.339639] ubi0: scanning is finished
[ 1.356527] ubi0: attached mtd3 (name "ubi", size 254 MiB)
[ 1.362081] ubi0: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
[ 1.368984] ubi0: min./max. I/O unit sizes: 2048/2048, sub-page size 512
[ 1.375732] ubi0: VID header offset: 512 (aligned 512), data offset: 2048
[ 1.382567] ubi0: good PEBs: 2030, bad PEBs: 2, corrupted PEBs: 0
[ 1.388682] ubi0: user volume: 3, internal volumes: 1, max. volumes count: 128
[ 1.395952] ubi0: max/mean erase counter: 3/1, WL threshold: 4096, image sequence number: 0
[ 1.404371] ubi0: available PEBs: 0, total reserved PEBs: 2030, PEBs reserved for bad PEB handling: 38
[ 1.414169] ubi0: background thread "ubi_bgt0d" started, PID 893
[ 1.420941] block ubiblock0_1: created from ubi0:1(rootfs)
[ 1.426479] ubiblock: device ubiblock0_1 (rootfs) set to be root filesystem
[ 1.433683] rtc-mv f1010300.rtc: setting system clock to 2017-03-31 20:32:19 UTC (1490992339)
[ 1.447092] VFS: Mounted root (squashfs filesystem) readonly on device 254:0.
[ 1.454798] Freeing unused kernel memory: 168K (c04ec000 - c0516000)
[ 1.461179] This architecture does not have kernel memory protection.
[ 1.653855] hub 1-1:1.0: USB hub found
[ 1.658416] hub 1-1:1.0: 4 ports detected
[ 1.789884] init: Console is alive
[ 1.793498] init: - watchdog -
[ 1.893569] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 1.900725] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 1.918125] random: fast init done
[ 1.921743] init: - preinit -
[ 2.210104] usb 1-1.1: new high-speed USB device number 3 using orion-ehci
[ 2.467079] usb-storage 1-1.1:1.0: USB Mass Storage device detected
[ 2.481532] scsi host0: usb-storage 1-1.1:1.0
[ 2.595816] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 3.523522] scsi 0:0:0:0: Direct-Access Intenso Basic Line 8.07 PQ: 0 ANSI: 4
[ 3.534213] sd 0:0:0:0: [sda] 7813120 512-byte logical blocks: (4.00 GB/3.73 GiB)
[ 3.542701] sd 0:0:0:0: [sda] Write Protect is off
[ 3.547515] sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
[ 3.548324] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 3.563122] sda: sda1 sda2
[ 3.569579] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 5.046087] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[ 5.055939] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 5.817358] UBIFS (ubi0:2): background thread "ubifs_bgt0_2" started, PID 979
[ 5.926917] UBIFS (ubi0:2): UBIFS: mounted UBI device 0, volume 2, name "rootfs_data"
[ 5.934815] UBIFS (ubi0:2): LEB size: 129024 bytes (126 KiB), min./max. I/O unit sizes: 2048 bytes/2048 bytes
[ 5.944789] UBIFS (ubi0:2): FS size: 251596800 bytes (239 MiB, 1950 LEBs), journal size 12644352 bytes (12 MiB, 98 LEBs)
[ 5.955717] UBIFS (ubi0:2): reserved for root: 4952683 bytes (4836 KiB)
[ 5.962372] UBIFS (ubi0:2): media format: w4/r0 (latest is w4/r0), UUID 14336C66-EA0C-49D4-9C20-83789D2FEC04, small LPT model
[ 5.974551] mount_root: overlay filesystem has not been fully initialized yet
[ 5.982696] mount_root: switching to ubifs overlay
[ 6.005399] urandom-seed: Seed file not found (/etc/urandom.seed)
[ 6.034663] procd: - early -
[ 6.037627] procd: - watchdog -
[ 6.895832] procd: - ubus -
[ 6.949855] procd: - init -
[ 7.144778] kmodloader: loading kernel modules from /etc/modules.d/*
[ 7.154124] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 7.167255] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 7.177436] nf_conntrack version 0.5.0 (2048 buckets, 8192 max)
[ 7.209058] xt_time: kernel timezone is -0000
[ 7.219333] PPP generic driver version 2.4.2
[ 7.225313] NET: Registered protocol family 24
[ 7.232239] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 11.145428] br-lan: port 1(eth0) entered blocking state
[ 11.150688] br-lan: port 1(eth0) entered disabled state
[ 11.156295] device eth0 entered promiscuous mode
[ 11.183148] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 25.187706] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[ 25.198055] br-lan: port 1(eth0) entered blocking state
[ 25.203338] br-lan: port 1(eth0) entered forwarding state
[ 25.209794] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
BusyBox v1.26.2 () built-in shell (ash)
_________
/ /\ _ ___ ___ ___
/ LE / \ | | | __| \| __|
/ DE / \ | |__| _|| |) | _|
/________/ LE \ |____|___|___/|___| lede-project.org
\ \ DE /
\ LE \ / -----------------------------------------------------------
\ DE \ / Reboot (SNAPSHOT, r3422+466-f938de7)
\________\/ -----------------------------------------------------------
=== 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.
--------------------------------------------------
root@LEDE:~# uname -a
Linux LEDE 4.9.20 #0 Tue Mar 28 08:39:58 2017 armv5tel GNU/Linux