Hi there,
I like to keep the rootfs and boot in separate ext4 and ext2 partitions, respectively,
For that in the past I have used this tutorial.
viewtopic.php?f=30&t=1325&start=10
It just so happens that my old pendisk has died and I had to buy another one and I am trying to reinstall using the same tutorial but it is failing me with a kernel panic.
Here is a copy of the env:
$this->bbcode_second_pass_code('', 'DockStar> printenv
baudrate=115200
bootcmd=usb start; setenv letter 9;for type in usb; do for disk in 0 1 2 3; do if ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done;
bootdelay=3
bootm=echo Booting from ${disk} ...; run setargs; bootm ${loadaddr};
bootz=echo Booting from ${disk} ...; run setargs; bootz ${loadaddr} - ${fdt_addr};
console=ttyS0
ethact=egiga0
fdt_addr=0x800000
fdt_file=/boot/dtbs/kirkwood-dockstar.dtb
importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr $filesize
load=echo Attempting to boot from ${type} ${disk}:1...;if run loadbootenv; then run importbootenv;fi;echo Checking if uenvcmd is set ...;if test -n $uenvcmd; then ech;
loadaddr=0x810000
loadbootenv=load ${type} ${disk}:1 ${loadaddr} /boot/uEnv.txt
loadfdt=load ${type} ${disk}:1 ${fdt_addr} ${fdt_file}
loaduimage=load ${type} ${disk}:1 ${loadaddr} ${uimage}
loadzimage=load ${type} ${disk}:1 ${loadaddr} ${zimage}
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts}
uimage=/boot/uImage
usb_rootfstype=ext4
usb_scan_1=usb=0:1 dev=sda2
usb_scan_2=usb=1:1 dev=sdb2
usb_scan_3=usb=2:1 dev=sdc2
usb_scan_4=usb=3:1 dev=sdd2
zimage=/boot/zImage
Environment size: 1537/131068 bytes
DockStar> ')
And here is a copy of the boot log using the serial:
$this->bbcode_second_pass_code('', 'U-Boot 2014.04.R4-1 (May 28 2014 - 22:13:12) Arch Linux ARM
Seagate FreeAgent DockStar
SoC: Kirkwood 88F6281_A0
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
Warning: failed to set MAC address
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0
(Re)start USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 3 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
Partition Map for USB device 0 -- Partition Type: DOS
Part Start Sector Num Sectors UUID Type
1 2048 512000 04822a80-01 83
2 514048 5464064 04822a80-02 83
3 5978112 1843200 04822a80-03 82
Attempting to boot from usb 0:1...
** File not found /boot/uEnv.txt **
Checking if uenvcmd is set ...
Running default loadzimage ...
** File not found /boot/zImage **
Running default loaduimage ...
4622488 bytes read in 511 ms (8.6 MiB/s)
Booting from 0 ...
## Booting kernel from Legacy Image at 00810000 ...
Image Name: Linux-4.4.213-1-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 4622424 Bytes = 4.4 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 4.4.213-1-ARCH (builduser@leming) (gcc version 9.2.0 (GCC) ) #1 PREEMPT Fri Feb 7 05:49:05 UTC 2020
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Seagate FreeAgent DockStar
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32480
[ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rw rootwait mtdparts=orion_nand:1M(u-boot),-(rootfs)
[ 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: 119668K/131072K available (6614K kernel code, 548K rwdata, 1892K rodata, 300K init, 720K bss, 11404K 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 - 0xc0856bbc (8507 kB)
[ 0.000000] .init : 0xc0857000 - 0xc08a2000 ( 300 kB)
[ 0.000000] .data : 0xc08a2000 - 0xc092b29c ( 549 kB)
[ 0.000000] .bss : 0xc092b29c - 0xc09df428 ( 721 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] Build-time adjustment of leaf fanout to 32.
[ 0.000000] NR_IRQS:114
[ 0.000012] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[ 13.242229] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[ 13.242414] Console: colour dummy device 80x30
[ 13.242441] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[ 13.332313] pid_max: default: 32768 minimum: 301
[ 13.332400] Security Framework initialized
[ 13.332473] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 13.332490] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 13.333213] Initializing cgroup subsys io
[ 13.333246] Initializing cgroup subsys memory
[ 13.333296] Initializing cgroup subsys devices
[ 13.333322] Initializing cgroup subsys freezer
[ 13.333343] Initializing cgroup subsys net_cls
[ 13.333362] Initializing cgroup subsys perf_event
[ 13.333384] Initializing cgroup subsys net_prio
[ 13.333463] CPU: Testing write buffer coherency: ok
[ 13.333930] Setting up static identity map for 0x81e0 - 0x8238
[ 13.335900] devtmpfs: initialized
[ 13.338242] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 13.338280] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 13.338769] pinctrl core: initialized pinctrl subsystem
[ 13.339514] NET: Registered protocol family 16
[ 13.340023] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 13.362317] cpuidle: using governor ladder
[ 13.392315] cpuidle: using governor menu
[ 13.392483] Kirkwood: MV88F6281-A0, TCLK=200000000.
[ 13.392506] Feroceon L2: Enabling L2
[ 13.392544] Feroceon L2: Cache support initialised.
[ 13.433808] vgaarb: loaded
[ 13.434143] SCSI subsystem initialized
[ 13.434626] usbcore: registered new interface driver usbfs
[ 13.434700] usbcore: registered new interface driver hub
[ 13.434760] usbcore: registered new device driver usb
[ 13.434928] pps_core: LinuxPPS API ver. 1 registered
[ 13.434937] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 13.434968] PTP clock support registered
[ 13.435998] clocksource: Switched to clocksource orion_clocksource
[ 13.474837] FS-Cache: Loaded
[ 13.487806] NET: Registered protocol family 2
[ 13.488605] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 13.488629] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 13.488648] TCP: Hash tables configured (established 1024 bind 1024)
[ 13.488720] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 13.488742] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 13.488944] NET: Registered protocol family 1
[ 13.489275] RPC: Registered named UNIX socket transport module.
[ 13.489286] RPC: Registered udp transport module.
[ 13.489292] RPC: Registered tcp transport module.
[ 13.489299] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 13.504004] VFS: Disk quotas dquot_6.6.0
[ 13.504272] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 13.506394] FS-Cache: Netfs 'nfs' registered for caching
[ 13.507496] NFS: Registering the id_resolver key type
[ 13.507554] Key type id_resolver registered
[ 13.507562] Key type id_legacy registered
[ 13.507650] jffs2: version 2.2. (NAND) �© 2001-2006 Red Hat, Inc.
[ 13.508959] fuse init (API version 7.23)
[ 13.511161] aufs 4.4-20170911
[ 13.516707] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 13.516728] io scheduler noop registered
[ 13.516741] io scheduler deadline registered
[ 13.517005] io scheduler cfq registered
[ 13.517261] io scheduler bfq registered (default)
[ 13.517270] BFQ I/O-scheduler: v7r11
[ 13.517460] mv_xor mv_xor.0: Marvell shared XOR driver
[ 13.557132] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[ 13.557375] mv_xor mv_xor.1: Marvell shared XOR driver
[ 13.597167] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[ 13.602746] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 13.603850] console [ttyS0] disabled
[ 13.623961] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[ 14.176894] console [ttyS0] enabled
[ 14.196079] brd: module loaded
[ 14.206801] loop: module loaded
[ 14.210865] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[ 14.217338] nand: Micron MT29F2G08AAD
[ 14.221021] nand: 256 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[ 14.228652] Scanning device for bad blocks
[ 14.245613] Bad eraseblock 168 at 0x000001500000
[ 14.251447] Bad eraseblock 184 at 0x000001700000
[ 14.261233] Bad eraseblock 252 at 0x000001f80000
[ 14.269040] Bad eraseblock 294 at 0x0000024c0000
[ 14.281723] Bad eraseblock 400 at 0x000003200000
[ 14.316434] Bad eraseblock 795 at 0x000006360000
[ 14.331782] Bad eraseblock 936 at 0x000007500000
[ 14.341802] Bad eraseblock 1007 at 0x000007de0000
[ 14.349774] Bad eraseblock 1050 at 0x000008340000
[ 14.377325] Bad eraseblock 1350 at 0x00000a8c0000
[ 14.386597] Bad eraseblock 1410 at 0x00000b040000
[ 14.422600] Bad eraseblock 1821 at 0x00000e3a0000
[ 14.444565] 2 cmdlinepart partitions found on MTD device orion_nand
[ 14.450876] Creating 2 MTD partitions on "orion_nand":
[ 14.456052] 0x000000000000-0x000000100000 : "u-boot"
[ 14.461518] 0x000000100000-0x000010000000 : "rootfs"
[ 14.474118] libphy: orion_mdio_bus: probed
[ 14.478385] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 15.556944] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:00:00:00:00:00
[ 15.565825] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 15.572421] ehci-pci: EHCI PCI platform driver
[ 15.576972] ehci-orion: EHCI orion driver
[ 15.581070] orion-ehci orion-ehci.0: EHCI Host Controller
[ 15.586541] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[ 15.594288] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 15.616028] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 15.622939] hub 1-0:1.0: USB hub found
[ 15.626794] hub 1-0:1.0: 1 port detected
[ 15.631426] usbcore: registered new interface driver uas
[ 15.636949] usbcore: registered new interface driver usb-storage
[ 15.643038] usbcore: registered new interface driver ums-alauda
[ 15.649084] usbcore: registered new interface driver ums-cypress
[ 15.655184] usbcore: registered new interface driver ums-datafab
[ 15.661292] usbcore: registered new interface driver ums_eneub6250
[ 15.667574] usbcore: registered new interface driver ums-freecom
[ 15.673658] usbcore: registered new interface driver ums-isd200
[ 15.679679] usbcore: registered new interface driver ums-jumpshot
[ 15.685849] usbcore: registered new interface driver ums-karma
[ 15.691783] usbcore: registered new interface driver ums-onetouch
[ 15.697994] usbcore: registered new interface driver ums-realtek
[ 15.704084] usbcore: registered new interface driver ums-sddr09
[ 15.710104] usbcore: registered new interface driver ums-sddr55
[ 15.716120] usbcore: registered new interface driver ums-usbat
[ 15.722426] mousedev: PS/2 mouse device common for all mice
[ 15.946027] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 16.098798] hub 1-1:1.0: USB hub found
[ 16.102924] hub 1-1:1.0: 4 ports detected
[ 16.386022] usb 1-1.4: new high-speed USB device number 3 using orion-ehci
[ 16.497960] usb-storage 1-1.4:1.0: USB Mass Storage device detected
[ 16.504591] scsi host0: usb-storage 1-1.4:1.0
[ 16.736022] rtc-mv rtc-mv: internal RTC not ticking
[ 16.741068] i2c /dev entries driver
[ 16.745107] sdhci: Secure Digital Host Controller Interface driver
[ 16.751346] sdhci: Copyright(c) Pierre Ossman
[ 16.755781] sdhci-pltfm: SDHCI platform and OF driver helper
[ 16.761958] ledtrig-cpu: registered to indicate activity on CPUs
[ 16.768156] usbcore: registered new interface driver r8712u
[ 16.774007] gre: GRE over IPv4 demultiplexor driver
[ 16.778981] NET: Registered protocol family 17
[ 16.783566] Key type dns_resolver registered
[ 16.788884] registered taskstats version 1
[ 16.794836] Key type encrypted registered
[ 16.799496] console [netcon0] enabled
[ 16.803177] netconsole: network logging started
[ 16.807875] hctosys: unable to open rtc device (rtc0)
[ 16.814179] Waiting for root device /dev/sda1...
[ 17.507516] scsi 0:0:0:0: Direct-Access SanDisk Cruzer Blade 1.26 PQ: 0 ANSI: 5
[ 17.516894] sd 0:0:0:0: Attached scsi generic sg0 type 0
[ 17.522745] sd 0:0:0:0: [sda] 7821312 512-byte logical blocks: (4.00 GB/3.73 GiB)
[ 17.532077] sd 0:0:0:0: [sda] Write Protect is off
[ 17.537701] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 17.552943] sda: sda1 sda2 sda3
[ 17.559702] sd 0:0:0:0: [sda] Attached SCSI removable disk
[ 17.587464] EXT4-fs (sda1): couldn't mount as ext3 due to feature incompatibilities
[ 17.596332] EXT4-fs (sda1): mounting ext2 file system using the ext4 subsystem
[ 17.611404] EXT4-fs (sda1): mounted filesystem without journal. Opts: (null)
[ 17.618625] VFS: Mounted root (ext2 filesystem) on device 8:1.
[ 17.625227] devtmpfs: error mounting -2
[ 17.630038] Freeing unused kernel memory: 300K
[ 17.634575] Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[ 17.647766] CPU: 0 PID: 1 Comm: swapper Not tainted 4.4.213-1-ARCH #1
[ 17.654230] Hardware name: Seagate FreeAgent DockStar
[ 17.659323] [<c000fd58>] (unwind_backtrace) from [<c000d3dc>] (show_stack+0x10/0x14)
[ 17.667111] [<c000d3dc>] (show_stack) from [<c00cc808>] (panic+0x9c/0x21c)
[ 17.674026] [<c00cc808>] (panic) from [<c064b140>] (kernel_init+0xb4/0xe0)
[ 17.680938] [<c064b140>] (kernel_init) from [<c000a4e8>] (ret_from_fork+0x14/0x2c)
[ 17.688545] ---[ end Kernel panic - not syncing: No working init found. Try passing init= option to kernel. See Linux Documentation/init.txt for guidance.
[ 81.616019] random: nonblocking pool is initialized
')
Here is my current fstab:
$this->bbcode_second_pass_code('', '/dev/sda1 /boot ext2 defaults,noatime 1 2')
Have already tried this fstab as per the tutorial with the same results:
$this->bbcode_second_pass_code('', '/dev/sda1 /boot ext2 defaults,noatime 1 2
/dev/sda2 / ext4 noatime 0 1')
What could I possibly be doing wrong...
Thanks in advance.
Cheers