[SOLVED]GoFlex Net not booting after creating initrd

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[SOLVED]GoFlex Net not booting after creating initrd

Postby Walnut » Wed Sep 17, 2014 8:06 pm

So, I was having difficulty getting my GoFlex Net to boot from my USB rootfs with any SATA drives connected. Doing some reading on these forums I came to the conclusion that I should create an initrd, but now my device does not boot at all. I am a U-boot newbie and having a heck of a time figuring out what's wrong here.

I created my initrd with the following commands:

$this->bbcode_second_pass_code('', '
mkinitcpio -g /boot/initramfs-linux.img
mkimage -A arm -T ramdisk -C none -n "uInitrd" -d /boot/initramfs-linux.img /boot/uInitrd
')

Here's the serial console output:

$this->bbcode_second_pass_code('', 'U-Boot 2014.04.R4-1 (May 28 2014 - 22:13:46) Arch Linux ARM
Seagate GoFlex Net

SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0

Reset IDE: ide_preinit failed
(Re)start USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found

no USB devices available

no USB devices available

no USB devices available

no USB devices available
')

Here is the output of printenv:

$this->bbcode_second_pass_code('', '
GoFlexNet> printenv
arcNumber=3338
baudrate=115200
bootcmd=ide reset; usb start; setenv letter 9;for type in ide usb; do for disk in 0 1; do if usb part 1;then setexpr letter 9 + 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
ethaddr=00:10:75:26:6C:15
fdt_addr=0x800000
fdt_file=/boot/dtbs/kirkwood-goflexnet.dtb
if_netconsole=ping $serverip
importbootenv=echo Importing environment (uEnv.txt)...; env import -t $loadaddr $filesize
ipaddr=192.168.1.10
letter=9
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 echo Running uenvcmd ...;run uenvcmd;fi;echo Running default loadzimage ...;if run loadzimage; then run loadfdt;run bootz;fi;echo Running default loaduimage ...;if run loaduimage; then run bootm;fi;
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)
preboot=run if_netconsole start_netconsole
serverip=192.168.1.52
setargs=setenv bootargs console=${console},${baudrate} ${optargs} root=/dev/sd${letter}1 rw rootwait ${mtdparts}
start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version;
uimage=/boot/uImage
usb_rootfstype=ext3
zimage=/boot/zImage

Environment size: 1716/131068 bytes
GoFlexNet>')

On my USB flash drive I see these files under /boot:

initramfs-linux.img
uboot-goflexnet.env
uboot-goflexnet.kwb
uImage
uInitrd

Any clues here folks?
Last edited by Walnut on Thu Sep 18, 2014 3:44 am, edited 2 times in total.
Walnut
 
Posts: 8
Joined: Mon Sep 08, 2014 11:05 pm

Re: GoFlex Net not booting after creating initrd

Postby WarheadsSE » Wed Sep 17, 2014 8:22 pm

$this->bbcode_second_pass_quote('', 'n')o USB devices available

Well, this is your problem. But as to why this has only started now? I don't know. It isn't even making it to loading the kernel because of this.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: GoFlex Net not booting after creating initrd

Postby Walnut » Wed Sep 17, 2014 8:56 pm

I noticed that, but uboot is a big liar. ;) Because I was able to manually load and boot the kernel from the USB rootfs, but then it hangs without any errors. I'm going to fsck the USB rootfs and then I'll try again.
Walnut
 
Posts: 8
Joined: Mon Sep 08, 2014 11:05 pm

Re: GoFlex Net not booting after creating initrd

Postby Walnut » Wed Sep 17, 2014 10:01 pm

An fsck of my USB rootfs revealed nothing. I did get the system booting with the failed boot attempt as seen above. Here's the additional commands I entered:

$this->bbcode_second_pass_code('', '
GoFlexNet> usb start
(Re)start USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
GoFlexNet> setenv type usb
GoFlexNet> setenv disk 0
GoFlexNet> setenv letter a
GoFlexNet> run load
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 ...
3927160 bytes read in 303 ms (12.4 MiB/s)
Booting from 0 ...
## Booting kernel from Legacy Image at 00810000 ...
Image Name: Linux-3.16.2-1-ARCH
etc...
')

So, what's up with the uboot startup script not finding my drive?
Walnut
 
Posts: 8
Joined: Mon Sep 08, 2014 11:05 pm

Re: GoFlex Net not booting after creating initrd

Postby WarheadsSE » Wed Sep 17, 2014 10:03 pm

$this->bbcode_second_pass_quote('', 'e')tc...

Yeah.. that part there kinda matters.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: GoFlex Net not booting after creating initrd

Postby Walnut » Wed Sep 17, 2014 10:28 pm

ok here's the full monty:

$this->bbcode_second_pass_code('', '

U-Boot 2014.04.R4-1 (May 28 2014 - 22:13:46) Arch Linux ARM
Seagate GoFlex Net

SoC: Kirkwood 88F6281_A1
DRAM: 128 MiB
WARNING: Caches not enabled
NAND: 256 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Hit any key to stop autoboot: 0

Reset IDE: ide_preinit failed
(Re)start USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found

no USB devices available

no USB devices available

no USB devices available

no USB devices available
GoFlexNet> setenv type usb
GoFlexNet> setenv disk 0
GoFlexNet> setenv letter a
GoFlexNet> run load
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 ...
3927160 bytes read in 303 ms (12.4 MiB/s)
Booting from 0 ...
## Booting kernel from Legacy Image at 00810000 ...
Image Name: Linux-3.16.2-1-ARCH
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3927096 Bytes = 3.7 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK

Starting kernel ...

Uncompressing Linux... done, booting the 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 3.16.2-1-ARCH (nobody@root-armv5-copy) (gcc version 4.8.2 20131219 (prerelease) (GCC) ) #1 PREEMPT Sat Sep 6 02:40:37 MDT 2014
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Seagate GoFlex Net
[ 0.000000] Memory policy: Data cache writeback
[ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 32512
[ 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] allocated 262144 bytes of page_cgroup
[ 0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
[ 0.000000] Memory: 121184K/131072K available (5466K kernel code, 340K rwdata, 1668K rodata, 256K init, 697K bss, 9888K reserved)
[ 0.000000] Virtual kernel memory layout:
[ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB)
[ 0.000000] fixmap : 0xffc00000 - 0xffe00000 (2048 kB)
[ 0.000000] vmalloc : 0xc8800000 - 0xff000000 ( 872 MB)
[ 0.000000] lowmem : 0xc0000000 - 0xc8000000 ( 128 MB)
[ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB)
[ 0.000000] .text : 0xc0008000 - 0xc06ffb24 (7135 kB)
[ 0.000000] .init : 0xc0700000 - 0xc074012c ( 257 kB)
[ 0.000000] .data : 0xc0742000 - 0xc07973bc ( 341 kB)
[ 0.000000] .bss : 0xc07973bc - 0xc08459a8 ( 698 kB)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] Preemptible hierarchical RCU implementation.
[ 0.000000] NR_IRQS:114
[ 0.000012] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns
[ 4.941988] Console: colour dummy device 80x30
[ 4.942013] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[ 5.031888] pid_max: default: 32768 minimum: 301
[ 5.031980] Security Framework initialized
[ 5.032046] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 5.032066] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 5.032841] Initializing cgroup subsys memory
[ 5.032984] Initializing cgroup subsys devices
[ 5.033036] Initializing cgroup subsys freezer
[ 5.033060] Initializing cgroup subsys net_cls
[ 5.033094] Initializing cgroup subsys blkio
[ 5.033126] Initializing cgroup subsys bfqio
[ 5.033171] Initializing cgroup subsys perf_event
[ 5.033195] Initializing cgroup subsys net_prio
[ 5.033311] CPU: Testing write buffer coherency: ok
[ 5.033754] Setting up static identity map for 0x532bc0 - 0x532c18
[ 5.035833] devtmpfs: initialized
[ 5.039208] pinctrl core: initialized pinctrl subsystem
[ 5.039635] NET: Registered protocol family 16
[ 5.040086] DMA: preallocated 256 KiB pool for atomic coherent allocations
[ 5.041202] cpuidle: using governor ladder
[ 5.041230] cpuidle: using governor menu
[ 5.041373] Kirkwood: MV88F6281-A1, TCLK=200000000.
[ 5.041397] Feroceon L2: Enabling L2
[ 5.041436] Feroceon L2: Cache support initialised.
[ 5.073551] vgaarb: loaded
[ 5.073888] SCSI subsystem initialized
[ 5.074389] usbcore: registered new interface driver usbfs
[ 5.074472] usbcore: registered new interface driver hub
[ 5.074589] usbcore: registered new device driver usb
[ 5.074754] pps_core: LinuxPPS API ver. 1 registered
[ 5.074763] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 5.074802] PTP clock support registered
[ 5.075827] Switched to clocksource orion_clocksource
[ 5.094493] FS-Cache: Loaded
[ 5.107693] NET: Registered protocol family 2
[ 5.108626] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 5.108652] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 5.108671] TCP: Hash tables configured (established 1024 bind 1024)
[ 5.108737] TCP: reno registered
[ 5.108749] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 5.108773] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 5.108969] NET: Registered protocol family 1
[ 5.110686] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 5.122665] VFS: Disk quotas dquot_6.5.2
[ 5.122935] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[ 5.124724] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[ 5.126074] fuse init (API version 7.23)
[ 5.127832] aufs 3.16-20140825
[ 5.127866] msgmni has been set to 236
[ 5.129733] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[ 5.129755] io scheduler noop registered
[ 5.129770] io scheduler deadline registered
[ 5.130191] io scheduler cfq registered
[ 5.130244] io scheduler bfq registered (default)
[ 5.130252] BFQ I/O-scheduler version: v7r5
[ 5.130450] mv_xor mv_xor.0: Marvell shared XOR driver
[ 5.165920] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 5.205910] mv_xor mv_xor.0: Marvell XOR: ( xor cpy )
[ 5.206110] mv_xor mv_xor.1: Marvell shared XOR driver
[ 5.245910] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[ 5.285907] mv_xor mv_xor.1: Marvell XOR: ( xor cpy )
[ 5.291464] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 5.292524] console [ttyS0] disabled
[ 5.312628] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[ 5.830677] console [ttyS0] enabled
[ 5.843588] brd: module loaded
[ 5.851358] loop: module loaded
[ 5.854901] sata_mv sata_mv.0: cannot get optional clkdev
[ 5.860469] sata_mv sata_mv.0: slots 32 ports 2
[ 5.868170] scsi0 : sata_mv
[ 5.871722] scsi1 : sata_mv
[ 5.874864] ata1: SATA max UDMA/133 irq 21
[ 5.879030] ata2: SATA max UDMA/133 irq 21
[ 5.884302] nand: device found, Manufacturer ID: 0x2c, Chip ID: 0xda
[ 5.890920] nand: Micron MT29F2G08AAD
[ 5.894598] nand: 256MiB, SLC, page size: 2048, OOB size: 64
[ 5.900314] Scanning device for bad blocks
[ 5.911326] Bad eraseblock 64 at 0x000000800000
[ 6.126974] 2 cmdlinepart partitions found on MTD device orion_nand
[ 6.133264] Creating 2 MTD partitions on "orion_nand":
[ 6.138461] 0x000000000000-0x000000100000 : "u-boot"
[ 6.143925] 0x000000100000-0x000010000000 : "rootfs"
[ 6.156422] libphy: orion_mdio_bus: probed
[ 6.160640] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[ 6.235861] ata1: SATA link down (SStatus 0 SControl F300)
[ 6.605851] ata2: SATA link down (SStatus 0 SControl F300)
[ 7.252574] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:10:75:26:6c:15
[ 7.261483] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 7.268067] ehci-pci: EHCI PCI platform driver
[ 7.272603] ehci-orion: EHCI orion driver
[ 7.276724] orion-ehci orion-ehci.0: EHCI Host Controller
[ 7.282183] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[ 7.289936] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[ 7.305868] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[ 7.312809] hub 1-0:1.0: USB hub found
[ 7.316667] hub 1-0:1.0: 1 port detected
[ 7.321343] usbcore: registered new interface driver usb-storage
[ 7.327844] mousedev: PS/2 mouse device common for all mice
[ 7.635882] usb 1-1: new high-speed USB device number 2 using orion-ehci
[ 7.787665] usb-storage 1-1:1.0: USB Mass Storage device detected
[ 7.794089] scsi2 : usb-storage 1-1:1.0
[ 8.335862] rtc-mv rtc-mv: internal RTC not ticking
[ 8.340911] i2c /dev entries driver
[ 8.345031] sdhci: Secure Digital Host Controller Interface driver
[ 8.351264] sdhci: Copyright(c) Pierre Ossman
[ 8.355709] sdhci-pltfm: SDHCI platform and OF driver helper
[ 8.362968] ledtrig-cpu: registered to indicate activity on CPUs
[ 8.369179] usbcore: registered new interface driver r8712u
[ 8.374971] gre: GRE over IPv4 demultiplexor driver
[ 8.379922] TCP: cubic registered
[ 8.383317] NET: Registered protocol family 17
[ 8.387922] Key type dns_resolver registered
[ 8.393048] registered taskstats version 1
[ 8.398485] console [netcon0] enabled
[ 8.402163] netconsole: network logging started
[ 8.406863] drivers/rtc/hctosys.c: unable to open rtc device (rtc0)
[ 8.414335] Waiting for root device /dev/sda1...
[ 8.796677] scsi 2:0:0:0: Direct-Access SanDisk Cruzer Fit 1.27 PQ: 0 ANSI: 6
[ 8.806213] sd 2:0:0:0: Attached scsi generic sg0 type 0
[ 8.811623] sd 2:0:0:0: [sda] 15633408 512-byte logical blocks: (8.00 GB/7.45 GiB)
[ 8.820726] sd 2:0:0:0: [sda] Write Protect is off
[ 8.826226] sd 2:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA
[ 8.840541] sda: sda1
[ 8.845985] sd 2:0:0:0: [sda] Attached SCSI removable disk
[ 8.857113] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem
[ 8.883351] EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
[ 8.891107] VFS: Mounted root (ext3 filesystem) on device 8:1.
[ 8.901036] devtmpfs: mounted
[ 8.904919] Freeing unused kernel memory: 256K (c0700000 - c0740000)
[ 9.189858] random: systemd urandom read with 24 bits of entropy available
[ 9.213345] systemd[1]: systemd 216 running in system mode. (+PAM -AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ -LZ4 +SECCOMP +BLKID -ELFUTILS +KMOD -IDN )
[ 9.231406] systemd[1]: Detected architecture 'arm'.

Welcome to Arch Linux ARM!

[ 9.343524] NET: Registered protocol family 10
[ 9.349168] systemd[1]: Inserted module 'ipv6'
[ 9.356251] systemd[1]: Set hostname to <urchin>.
[ 9.927112] systemd[1]: Cannot add dependency job for unit display-manager.service, ignoring: Unit display-manager.service failed to load: No such file or directory.
[ 9.947428] systemd[1]: Starting Forward Password Requests to Wall Directory Watch.
[ 9.955614] systemd[1]: Started Forward Password Requests to Wall Directory Watch.
[ 9.963472] systemd[1]: Expecting device dev-ttyS0.device...
Expecting device dev-ttyS0.device...
[ 9.986039] systemd[1]: Starting Remote File Systems.
[ OK ] Reached target Remote File Systems.
[ 10.005980] systemd[1]: Reached target Remote File Systems.
[ 10.011829] systemd[1]: Starting Arbitrary Executable File Formats File System Automount Point.
[ OK ] Set up automount Arbitrary Executab...ats File System Automount Point.
[ 10.045993] systemd[1]: Set up automount Arbitrary Executable File Formats File System Automount Point.
[ 10.055595] systemd[1]: Starting Encrypted Volumes.
[ OK ] Reached target Encrypted Volumes.
[ 10.075979] systemd[1]: Reached target Encrypted Volumes.
[ 10.081573] systemd[1]: Starting Dispatch Password Requests to Console Directory Watch.
[ 10.089974] systemd[1]: Started Dispatch Password Requests to Console Directory Watch.
[ 10.098099] systemd[1]: Starting Paths.
[ OK ] Reached target Paths.
[ 10.115980] systemd[1]: Reached target Paths.
[ 10.120508] systemd[1]: Starting System Time Synchronized.
[ OK ] Reached target System Time Synchronized.
[ 10.145976] systemd[1]: Reached target System Time Synchronized.
[ 10.152135] systemd[1]: Starting Swap.
[ OK ] Reached target Swap.
[ 10.175972] systemd[1]: Reached target Swap.
[ 10.180394] systemd[1]: Starting Root Slice.
[ OK ] Created slice Root Slice.
[ 10.236085] systemd[1]: Created slice Root Slice.
[ 10.240976] systemd[1]: Starting User and Session Slice.
[ OK ] Created slice User and Session Slice.
[ 10.266001] systemd[1]: Created slice User and Session Slice.
[ 10.271930] systemd[1]: Starting /dev/initctl Compatibility Named Pipe.
[ OK ] Listening on /dev/initctl Compatibility Named Pipe.
[ 10.295992] systemd[1]: Listening on /dev/initctl Compatibility Named Pipe.
[ 10.303130] systemd[1]: Starting Delayed Shutdown Socket.
[ OK ] Listening on Delayed Shutdown Socket.
[ 10.325987] systemd[1]: Listening on Delayed Shutdown Socket.
[ 10.331900] systemd[1]: Starting Device-mapper event daemon FIFOs.
[ OK ] Listening on Device-mapper event daemon FIFOs.
[ 10.355982] systemd[1]: Listening on Device-mapper event daemon FIFOs.
[ 10.362672] systemd[1]: Starting Journal Socket (/dev/log).
[ OK ] Listening on Journal Socket (/dev/log).
[ 10.385989] systemd[1]: Listening on Journal Socket (/dev/log).
[ 10.392078] systemd[1]: Starting LVM2 metadata daemon socket.
[ OK ] Listening on LVM2 metadata daemon socket.
[ 10.415986] systemd[1]: Listening on LVM2 metadata daemon socket.
[ 10.422287] systemd[1]: Starting udev Control Socket.
[ OK ] Listening on udev Control Socket.
[ 10.445988] systemd[1]: Listening on udev Control Socket.
[ 10.451589] systemd[1]: Starting udev Kernel Socket.
[ OK ] Listening on udev Kernel Socket.
[ 10.475987] systemd[1]: Listening on udev Kernel Socket.
[ 10.481489] systemd[1]: Starting Journal Socket.
[ OK ] Listening on Journal Socket.
[ 10.505985] systemd[1]: Listening on Journal Socket.
[ 10.511212] systemd[1]: Starting System Slice.
[ OK ] Created slice System Slice.
[ 10.536008] systemd[1]: Created slice System Slice.
[ 10.541147] systemd[1]: Started File System Check on Root Device.
[ 10.550937] systemd[1]: Mounting Temporary Directory...
Mounting Temporary Directory...
[ 10.580327] systemd[1]: Starting system-getty.slice.
[ OK ] Created slice system-getty.slice.
[ 10.616057] systemd[1]: Created slice system-getty.slice.
[ 10.622284] systemd[1]: Starting system-serial\x2dgetty.slice.
[ OK ] Created slice system-serial\x2dgetty.slice.
[ 10.646134] systemd[1]: Created slice system-serial\x2dgetty.slice.
[ 10.652741] systemd[1]: Mounted Huge Pages File System.
[ 10.659268] systemd[1]: Mounting POSIX Message Queue File System...
Mounting POSIX Message Queue File System...
[ 10.689533] systemd[1]: Starting udev Coldplug all Devices...
Starting udev Coldplug all Devices...
[ 10.712262] systemd[1]: Started Load Kernel Modules.
[ 10.723025] systemd[1]: Starting Apply Kernel Variables...
Starting Apply Kernel Variables...
[ 10.750888] systemd[1]: Starting Create list of required static device nodes for the current kernel...
Starting Create list of required st... nodes for the current kernel...
[ 10.792065] systemd[1]: Starting Setup Virtual Console...
Starting Setup Virtual Console...
[ 10.830069] systemd[1]: Mounting FUSE Control File System...
Mounting FUSE Control File System...
[ 10.863657] systemd[1]: Mounting Debug File System...
Mounting Debug File System...
[ 10.902684] systemd[1]: Started Set Up Additional Binary Formats.
[ 10.916640] systemd[1]: Mounted Configuration File System.
[ 10.922283] systemd[1]: Starting Journal Service...
Starting Journal Service...
[ OK ] Started Journal Service.
[ 10.966063] systemd[1]: Started Journal Service.
[ OK ] Reached target Slices.
Starting Remount Root and Kernel File Systems...
[ OK ] Mounted Debug File System.
[ OK ] Mounted FUSE Control File System.
[ OK ] Mounted POSIX Message Queue File System.
[ OK ] Mounted Temporary Directory.
[ OK ] Started Apply Kernel Variables.
[ OK ] Started Create list of required sta...ce nodes for the current kernel.
[ OK ] Started Setup Virtual Console.
[ 11.133231] EXT4-fs (sda1): re-mounted. Opts: (null)
[ OK ] Started Remount Root and Kernel File Systems.
[ OK ] Started udev Coldplug all Devices.
Starting Load/Save Random Seed...
Starting Create Static Device Nodes in /dev...
[ OK ] Started Load/Save Random Seed.
[ OK ] Started Create Static Device Nodes in /dev.
Starting udev Kernel Device Manager...
[ OK ] Reached target Local File Systems (Pre).
[ OK ] Reached target Local File Systems.
[ 11.947563] systemd-udevd[92]: starting version 216
Starting Create Volatile Files and Directories...
Starting Trigger Flushing of Journal to Persistent Storage...
[ OK ] Started udev Kernel Device Manager.
[ 12.127265] systemd-journald[82]: Received request to flush runtime journal from PID 1
[ OK ] Started Trigger Flushing of Journal to Persistent Storage.
[ OK ] Started Create Volatile Files and Directories.
Starting Update UTMP about System Boot/Shutdown...
[ OK ] Started Update UTMP about System Boot/Shutdown.
[ OK ] Found device /dev/ttyS0.
[ OK ] Reached target System Initialization.
[ 12.870090] usbcore: registered new interface driver uas
[ OK ] Listening on D-Bus System Message Bus Socket.
[ OK ] Reached target Sockets.
[ OK ] Reached target Timers.
[ OK ] Reached target Basic System.
Starting Entropy Harvesting Daemon...
Starting Login Service...
Starting D-Bus System Message Bus...
[ OK ] Started D-Bus System Message Bus.
Starting Network Service...
Starting Permit User Sessions...
[ OK ] Started Permit User Sessions.
[ OK ] Started Login Service.
Starting Getty on tty1...
[ 14.036890] random: nonblocking pool is initialized
[ OK ] Started Getty on tty1.
Starting Serial Getty on ttyS0...
[ OK ] Started Serial Getty on ttyS0.
[ OK ] Reached target Login Prompts.
[ OK ] Started Entropy Harvesting Daemon.
[ OK ] Started Network Service.
Starting Network Name Resolution...
[ OK ] Reached target Network.
Starting OpenSSH Daemon...
[ OK ] Started OpenSSH Daemon.
Starting Network Time Service...
[ OK ] Started Network Time Service.
[ 17.246373] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ OK ] Started Network Name Resolution.
[ OK ] Reached target Multi-User System.
[ OK ] Reached target Graphical Interface.

Arch Linux 3.16.2-1-ARCH (ttyS0)

urchin login: [ 19.040686] mv643xx_eth_port mv643xx_eth_port.0 eth0: link up, 100 Mb/s, full duplex, flow control disabled
[ 19.050523] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready

')
Walnut
 
Posts: 8
Joined: Mon Sep 08, 2014 11:05 pm

Re: GoFlex Net not booting after creating initrd

Postby Walnut » Thu Sep 18, 2014 1:07 am

Looking deeper I thought I would dissect the bootcmd variable:

$this->bbcode_second_pass_code('', 'bootcmd=ide reset; usb start; setenv letter 9;for type in ide usb; do for disk in 0 1; do if usb part 1;then setexpr letter 9 + 1;run load;fi;done;done;')

So, I took a look at what the output of the "usb part" command...

$this->bbcode_second_pass_code('', '
GoFlexNet> usb start
(Re)start USB...
USB0: USB EHCI 1.00
scanning bus 0 for devices... 2 USB Device(s) found
scanning usb for storage devices... 1 Storage Device(s) found
GoFlexNet> usb dev

USB device 0: Vendor: SanDisk Rev: 1.27 Prod: Cruzer Fit
Type: Removable Hard Disk
Capacity: 7633.5 MB = 7.4 GB (15633408 x 512)
GoFlexNet> usb part

Partition Map for USB device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 62 15620218 00000000-01 83
GoFlexNet> usb part 1

no USB devices available
GoFlexNet> usb part 0

Partition Map for USB device 0 -- Partition Type: DOS

Part Start Sector Num Sectors UUID Type
1 62 15620218 00000000-01 83
GoFlexNet>
')

The output of "usb part 1" does not seem to match what the bootcmd variable is expecting to boot. Was something changed in uboot perhaps that the default env no longer works properly?
Walnut
 
Posts: 8
Joined: Mon Sep 08, 2014 11:05 pm

Re: GoFlex Net not booting after creating initrd

Postby Geoff » Thu Sep 18, 2014 1:11 am

$this->bbcode_second_pass_quote('Walnut', 'o')k here's the full monty:

Looks like it booted up all the way, no problem. It didn't use your initrd, but maybe you don't need that after all.
Geoff
 
Posts: 231
Joined: Wed Mar 09, 2011 5:14 pm
Top

Re: GoFlex Net not booting after creating initrd

Postby Walnut » Thu Sep 18, 2014 1:31 am

The problem is that I had to manually get it to boot. I'd rather not have to do that. I have changed nothing in the config I've only discovered more detail on the problem, which to me seems like changed output from "usb part".
Walnut
 
Posts: 8
Joined: Mon Sep 08, 2014 11:05 pm

Re: GoFlex Net not booting after creating initrd

Postby Walnut » Thu Sep 18, 2014 3:44 am

problem solved:

$this->bbcode_second_pass_code('', 'setenv bootcmd 'ide reset; usb start; setenv letter 9;for type in ide usb; do for disk in 0 1; do if ${type} part ${disk};then setexpr letter $letter + 1;run load;fi;done;done;'')

So, somehow I screwed up the bootcmd line, most likely from using " instead of ' when setting that variable. Booting again, but I still need to get my initrd solution together so uboot will boot from the USB rootfs instead of SATA when I have SATA drives installed.
Walnut
 
Posts: 8
Joined: Mon Sep 08, 2014 11:05 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 54 guests