Welcome! Log In Create A New Profile

Advanced

e02 not booting :(

Posted by nick2012 
e02 not booting :(
April 08, 2016 08:35AM
hey guys
after the new uboot update my usb is no more recognized tried editing fstab and other things but still no luck.
sry for being so noob :(

here is my serial output with usb drive attached
U-Boot 2016.03-2 (Mar 15 2016 - 23:11:22 -0600) Arch Linux ARM
Pogo E02

SoC:   Kirkwood 88F6281_A0
DRAM:  256 MiB
WARNING: Caches not enabled
NAND:  128 MiB
In:    serial
Out:   serial
Err:   serial
Net:   egiga0
Using egiga0 device

ARP Retry count exceeded; starting again
ping failed; host 10.10.10.5 is not alive
Hit any key to stop autoboot:  0 
starting USB...
USB0:   USB EHCI 1.00
scanning bus 0 for devices... EHCI timed out on TD - token=0x80008c80
unable to get device descriptor (error=-1)
3 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found

USB device 0: 
    Device 0: Vendor: Generic  Rev: 1.14 Prod: External        
            Type: Hard Disk
            Capacity: 238474.1 MB = 232.8 GB (488395054 x 512)
... is now current device
usb found on device 0
Checking for: /boot/uEnv.txt ...
** File not found /boot/zImage **
4556392 bytes read in 289 ms (15 MiB/s)
loading /boot/dtbs/kirkwood-pogo_e02.dtb ...
** File not found /boot/dtbs/kirkwood-pogo_e02.dtb **
2682080 bytes read in 231 ms (11.1 MiB/s)
Booting uImage with initrd
## Booting kernel from Legacy Image at 00810000 ...
   Image Name:   Linux-4.4.6-1-ARCH
   Image Type:   ARM Linux Kernel Image (uncompressed)
   Data Size:    4556328 Bytes = 4.3 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.6-1-ARCH (builduser@leming) (gcc version 5.3.0 (GCC) ) #1 PREEMPT Fri Mar 25 23:54:20 MDT 2016
[    0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f
[    0.000000] CPU: VIVT data cache, VIVT instruction cache
[    0.000000] Machine: Pogoplug E02
[    0.000000] Memory policy: Data cache writeback
[    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 64960
[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:1M(u-boot),-(rootfs) root=PARTUUID=00000001-01 rw rootwait
[    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
[    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
[    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
[    0.000000] Memory: 246956K/262144K available (6552K kernel code, 546K rwdata, 1868K rodata, 296K init, 725K bss, 15188K 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 : 0xd0800000 - 0xff800000   ( 752 MB)
[    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
[    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
[    0.000000]       .text : 0xc0008000 - 0xc0841548   (8422 kB)
[    0.000000]       .init : 0xc0842000 - 0xc088c000   ( 296 kB)
[    0.000000]       .data : 0xc088c000 - 0xc091485c   ( 547 kB)
[    0.000000]        .bss : 0xc091485c - 0xc09c9d58   ( 726 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.000013] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 10737418237ns
[    2.758124] clocksource: orion_clocksource: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 9556302233 ns
[    2.758311] Console: colour dummy device 80x30
[    2.758342] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584)
[    2.848213] pid_max: default: 32768 minimum: 301
[    2.848307] Security Framework initialized
[    2.848384] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    2.848404] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[    2.849143] Initializing cgroup subsys io
[    2.849177] Initializing cgroup subsys memory
[    2.849229] Initializing cgroup subsys devices
[    2.849256] Initializing cgroup subsys freezer
[    2.849278] Initializing cgroup subsys net_cls
[    2.849298] Initializing cgroup subsys perf_event
[    2.849322] Initializing cgroup subsys net_prio
[    2.849404] CPU: Testing write buffer coherency: ok
[    2.849868] Setting up static identity map for 0x81e0 - 0x8238
[    2.851811] devtmpfs: initialized
[    2.854217] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[    2.854627] pinctrl core: initialized pinctrl subsystem
[    2.855399] NET: Registered protocol family 16
[    2.855895] DMA: preallocated 256 KiB pool for atomic coherent allocations
[    2.878213] cpuidle: using governor ladder
[    2.908213] cpuidle: using governor menu
[    2.908393] Kirkwood: MV88F6281-A0, TCLK=200000000.
[    2.908419] Feroceon L2: Enabling L2
[    2.908459] Feroceon L2: Cache support initialised.
[    2.949674] vgaarb: loaded
[    2.950000] SCSI subsystem initialized
[    2.950477] usbcore: registered new interface driver usbfs
[    2.950552] usbcore: registered new interface driver hub
[    2.950613] usbcore: registered new device driver usb
[    2.950779] pps_core: LinuxPPS API ver. 1 registered
[    2.950789] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[    2.950822] PTP clock support registered
[    2.951889] clocksource: Switched to clocksource orion_clocksource
[    2.990708] FS-Cache: Loaded
[    3.003907] NET: Registered protocol family 2
[    3.004708] TCP established hash table entries: 2048 (order: 1, 8192 bytes)
[    3.004748] TCP bind hash table entries: 2048 (order: 1, 8192 bytes)
[    3.004778] TCP: Hash tables configured (established 2048 bind 2048)
[    3.004853] UDP hash table entries: 256 (order: 0, 4096 bytes)
[    3.004877] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[    3.005074] NET: Registered protocol family 1
[    3.005405] RPC: Registered named UNIX socket transport module.
[    3.005418] RPC: Registered udp transport module.
[    3.005425] RPC: Registered tcp transport module.
[    3.005432] RPC: Registered tcp NFSv4.1 backchannel transport module.
[    3.005733] Trying to unpack rootfs image as initramfs...
[    3.214762] Freeing initrd memory: 2620K (c1100000 - c138f000)
[    3.216576] futex hash table entries: 256 (order: -1, 3072 bytes)
[    3.229365] VFS: Disk quotas dquot_6.6.0
[    3.229634] VFS: Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
[    3.231680] FS-Cache: Netfs 'nfs' registered for caching
[    3.232782] NFS: Registering the id_resolver key type
[    3.232836] Key type id_resolver registered
[    3.232845] Key type id_legacy registered
[    3.232941] jffs2: version 2.2. (NAND) © 2001-2006 Red Hat, Inc.
[    3.234256] fuse init (API version 7.23)
[    3.236511] aufs 4.4-20160321
[    3.241710] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 250)
[    3.241734] io scheduler noop registered
[    3.241748] io scheduler deadline registered
[    3.242078] io scheduler cfq registered
[    3.242353] io scheduler bfq registered (default)
[    3.242362] BFQ I/O-scheduler: v7r11
[    3.242565] mv_xor mv_xor.0: Marvell shared XOR driver
[    3.283201] mv_xor mv_xor.0: Marvell XOR (Registers Mode): ( xor cpy )
[    3.283449] mv_xor mv_xor.1: Marvell shared XOR driver
[    3.323150] mv_xor mv_xor.1: Marvell XOR (Registers Mode): ( xor cpy )
[    3.328764] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[    3.329881] console [ttyS0] disabled
[    3.349996] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A
[    3.914323] console [ttyS0] enabled
[    3.933839] brd: module loaded
[    3.944597] loop: module loaded
[    3.948822] nand: Could not find valid ONFI parameter page; aborting
[    3.955356] nand: device found, Manufacturer ID: 0xad, Chip ID: 0xf1
[    3.961742] nand: Hynix NAND 128MiB 3,3V 8-bit
[    3.966231] nand: 128 MiB, SLC, erase size: 128 KiB, page size: 2048, OOB size: 64
[    3.973863] Scanning device for bad blocks
[    3.989922] Bad eraseblock 157 at 0x0000013a0000
[    3.999074] Bad eraseblock 217 at 0x000001b20000
[    4.064813] 2 cmdlinepart partitions found on MTD device orion_nand
[    4.071109] Creating 2 MTD partitions on "orion_nand":
[    4.076293] 0x000000000000-0x000000100000 : "u-boot"
[    4.081761] 0x000000100000-0x000008000000 : "rootfs"
[    4.100372] libphy: orion_mdio_bus: probed
[    4.104669] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4
[    5.182889] mv643xx_eth_port mv643xx_eth_port.0 eth0: port 0 with MAC address 00:25:31:04:46:23
[    5.191772] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[    5.198360] ehci-pci: EHCI PCI platform driver
[    5.202911] ehci-orion: EHCI orion driver
[    5.207015] orion-ehci orion-ehci.0: EHCI Host Controller
[    5.212491] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1
[    5.220238] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000
[    5.241917] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00
[    5.248850] hub 1-0:1.0: USB hub found
[    5.252710] hub 1-0:1.0: 1 port detected
[    5.257337] usbcore: registered new interface driver uas
[    5.262858] usbcore: registered new interface driver usb-storage
[    5.268943] usbcore: registered new interface driver ums-alauda
[    5.274988] usbcore: registered new interface driver ums-cypress
[    5.281069] usbcore: registered new interface driver ums-datafab
[    5.287180] usbcore: registered new interface driver ums_eneub6250
[    5.293470] usbcore: registered new interface driver ums-freecom
[    5.299557] usbcore: registered new interface driver ums-isd200
[    5.305576] usbcore: registered new interface driver ums-jumpshot
[    5.311745] usbcore: registered new interface driver ums-karma
[    5.317680] usbcore: registered new interface driver ums-onetouch
[    5.323892] usbcore: registered new interface driver ums-realtek
[    5.329980] usbcore: registered new interface driver ums-sddr09
[    5.336001] usbcore: registered new interface driver ums-sddr55
[    5.342017] usbcore: registered new interface driver ums-usbat
[    5.348324] mousedev: PS/2 mouse device common for all mice
[    5.571918] usb 1-1: new high-speed USB device number 2 using orion-ehci
[    5.724505] hub 1-1:1.0: USB hub found
[    5.728622] hub 1-1:1.0: 4 ports detected
[    6.011912] usb 1-1.2: new full-speed USB device number 3 using orion-ehci
[    6.091909] usb 1-1.2: device descriptor read/64, error -32
[    6.281908] usb 1-1.2: device descriptor read/64, error -32
[    6.361909] rtc-mv rtc-mv: internal RTC not ticking
[    6.366951] i2c /dev entries driver
[    6.371059] sdhci: Secure Digital Host Controller Interface driver
[    6.377296] sdhci: Copyright(c) Pierre Ossman
[    6.381739] sdhci-pltfm: SDHCI platform and OF driver helper
[    6.387979] ledtrig-cpu: registered to indicate activity on CPUs
[    6.394232] usbcore: registered new interface driver r8712u
[    6.400153] gre: GRE over IPv4 demultiplexor driver
[    6.405168] NET: Registered protocol family 17
[    6.409762] Key type dns_resolver registered
[    6.415128] registered taskstats version 1
[    6.440383] Key type encrypted registered
[    6.445121] console [netcon0] enabled
[    6.448818] netconsole: network logging started
[    6.453647] hctosys: unable to open rtc device (rtc0)
[    6.460635] Freeing unused kernel memory: 296K (c0842000 - c088c000)
[    6.481992] usb 1-1.2: new full-speed USB device number 4 using orion-ehci
:: running early hook [udev]
[    6.526759] random: systemd-tmpfile urandom read with 8 bits of entropy available
starting version 229
:: running hook [udev]
:: Triggering uevents...
[    6.571994] usb 1-1.2: device descriptor read/64, error -32
[    6.761981] usb 1-1.2: device descriptor read/64, error -32
[    6.952011] usb 1-1.2: new full-speed USB device number 5 using orion-ehci
[    7.401927] usb 1-1.2: device not accepting address 5, error -32
[    7.481913] usb 1-1.2: new full-speed USB device number 6 using orion-ehci
[    7.901911] usb 1-1.2: device not accepting address 6, error -32
[    7.908254] usb 1-1-port2: unable to enumerate USB device
[    7.991911] usb 1-1.3: new high-speed USB device number 7 using orion-ehci
[    8.105714] usb-storage 1-1.3:1.0: USB Mass Storage device detected
[    8.112415] scsi host0: usb-storage 1-1.3:1.0
Waiting 10 seconds for device /dev/disk/by-partuuid/00000001-01 ...
[    9.112967] scsi 0:0:0:0: Direct-Access     Generic  External         1.14 PQ: 0 ANSI: 4
[    9.125556] sd 0:0:0:0: [sda] 488395054 512-byte logical blocks: (250 GB/233 GiB)
[    9.133637] sd 0:0:0:0: Attached scsi generic sg0 type 0
[    9.147057] sd 0:0:0:0: [sda] Write Protect is off
[    9.168798] sd 0:0:0:0: [sda] No Caching mode page found
[    9.175476] sd 0:0:0:0: [sda] Assuming drive cache: write through
[    9.212123]  sda: sda1
[    9.220173] sd 0:0:0:0: [sda] Attached SCSI disk
ERROR: device 'PARTUUID=00000001-01' not found. Skipping fsck.
ERROR: Unable to find root device 'PARTUUID=00000001-01'.
You are being dropped to a recovery shell
    Type 'exit' to try and continue booting
sh: can't access tty; job control turned off
[rootfs ]# [  101.103992] random: nonblocking pool is initialized

Re: e02 not booting :(
April 08, 2016 10:02AM
PogoE02> printenv
bootcmd=run startboot;run bootubi
bootdir=/boot
bootfilem=uImage
bootfilez=zImage
bootubi=echo Trying to boot from NAND ...;if run mountubi; then ubifsload ${loadaddr} /boot/zImage;ubifsload ${fdtaddr} /boot/dtbs/${fdtfile};ubifsumount; setenv bootargs console=${console} ubi.mtd=1 root=ubi0:rootfs ro rootfstype=ubifs  rootwait ${mtdparts};bootz ${loadaddr} - ${fdtaddr};fi
console=ttyS0,115200
devnum=0
ethact=egiga0
ethaddr=00:25:31:04:46:23
fdtaddr=0x800000
fdtdir=/boot/dtbs
fdtfile=kirkwood-pogo_e02.dtb
ipaddr=10.10.10.3
loadaddr=0x810000
loadfdt=echo loading ${fdtdir}/${fdtfile} ...; load ${devtype} ${bootpart} ${fdtaddr} ${fdtdir}/${fdtfile}
loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilez} || load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilem}
loadrd=load ${devtype} ${bootpart} ${rdaddr} ${bootdir}/${rdfile}
mainargs=setenv bootargs console=${console} ${mtdparts} root=${root} rw rootwait ${optargs} ${ncargs}
mountubi=ubi part rootfs; ubifsmount ubi0:rootfs
mtddevname=u-boot
mtddevnum=0
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
ncip=10.10.10.5
ncipk=10.10.10.4
netconsole=on
partition=nand0,0
preboot=if env exists netconsole && test ${netconsole} = on; then if ping ${ncip}; then  setenv stdin nc; setenv stdout nc;  setenv stderr nc; version; if env exists ncargsusr; then echo ncargs has been defined by user; setenv ncargs ${ncargsusr}; else setenv ncargs ignore_loglevel netconsole=6665@${ipaddr}/eth0,6666@${ncipk}/; fi; fi; else echo Netconsole has been turned off.; echo To turn it on, set netconsole variable to on.; setenv stdin; setenv stdout; setenv stderr; setenv ncargs; fi
rdaddr=0x1100000
rdfile=initramfs-linux.img
startboot=usb start; for devtype in usb ; do  setenv devnum 0; while ${devtype} dev ${devnum}; do  echo ${devtype} found on device ${devnum}; setenv bootpart ${devnum}:1; echo Checking for: ${bootdir}/uEnv.txt ...; if test -e ${devtype} ${bootpart} ${bootdir}/uEnv.txt; then  load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/uEnv.txt; env import -t ${loadaddr} ${filesize}; echo Loaded environment from ${bootdir}/uEnv.txt; echo Checking if uenvcmd is set ...; if test -n ${uenvcmd}; then  echo Running uenvcmd ...; run uenvcmd; fi; fi; if run loadimage; then if env exists root; then echo root has been defined by user; else part uuid ${devtype} ${bootpart} uuid; setenv root PARTUUID=${uuid}; fi;  run mainargs; if run loadfdt; then  if run loadrd; then  bootz ${loadaddr} ${rdaddr}:${filesize} ${fdtaddr}; else  bootz ${loadaddr} - ${fdtaddr}; fi; else  if run loadrd; then echo Booting uImage with initrd;  bootm ${loadaddr} ${rdaddr}:${filesize}; else  bootm ${loadaddr}; fi; fi; else  echo No kernel found; fi; setexpr devnum ${devnum} + 1; done; done;

Environment size: 2843/131068 bytes

Re: e02 not booting :(
April 08, 2016 03:28PM
nick2012,

You are in the wrong forum :) You are running Arch u-boot and Arch Linux ARM. This is where you should ask for help: https://archlinuxarm.org/forum.

However, if you really want me to help solving this booting problem. Then here is an observation:

- Mount this USB HDD on another Linux box, use parted to check your disk partition PARTUUID. Has it changed in anyway?

[    0.000000] Kernel command line: console=ttyS0,115200 mtdparts=orion_nand:1M(u-boot),-(rootfs) root=PARTUUID=00000001-01 rw rootwait

Waiting 10 seconds for device /dev/disk/by-partuuid/00000001-01 ...

....
ERROR: device 'PARTUUID=00000001-01' not found. Skipping fsck.
ERROR: Unable to find root device 'PARTUUID=00000001-01'.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/08/2016 03:42PM by bodhi.
Re: e02 not booting :(
April 08, 2016 04:02PM
thanks for your fast reply
is there a way to flash debian uboot using serial connection?
Re: e02 not booting :(
April 08, 2016 05:06PM
nick2012 Wrote:
-------------------------------------------------------
> thanks for your fast reply
> is there a way to flash debian uboot using serial
> connection?

There is no need to do that drastic step, yet. Are you switching to Debian, or you prefer to run Arch? In either case, don't worry, you'll get help here. We are helping all Linux users, regardless of distro.

If you just want to get it booting again:

- interrupt serial console,

usb part

and post the output here.

And mount this USB HDD on another Linux box and get that disk PARTUUID

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/08/2016 05:23PM by bodhi.
Re: e02 not booting :(
April 08, 2016 05:26PM
nick,

This is more important:

Quote

And mount this USB HDD on another Linux box and get that disk PARTUUID

If your rootfs partition has a good PARTUUID then it will boot fine. The current one is not good.

And remember, PARTUUID is not the same as device UUID.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)



Edited 1 time(s). Last edit at 04/08/2016 05:28PM by bodhi.
Re: e02 not booting :(
April 10, 2016 12:32PM
Thank you bodhi.
I booted archlinux with my ip after formatting my disk with gpt. It was not recieving its partuuid.
And yes i am more familiar with debian codes and always find it more stable.
Thank you for your fast and informative replies.
Here i get much faster replies thanarchlinux.
Re: e02 not booting :(
April 10, 2016 04:04PM
nick2012 Wrote:
-------------------------------------------------------
> Thank you bodhi.
> I booted archlinux with my ip after formatting my
> disk with gpt. It was not recieving its partuuid.
>
> And yes i am more familiar with debian codes and
> always find it more stable.
> Thank you for your fast and informative replies.
> Here i get much faster replies thanarchlinux.

Sure, if you have problem with generating new PARTUUID, post the question.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: e02 not booting :(
April 13, 2016 06:52AM
hey bodhi
here is my fw_printenv
is this fine
fw_printenv
bootcmd=run startboot;run bootubi
bootdir=/boot
bootfilem=uImage
bootfilez=zImage
bootubi=echo Trying to boot from NAND ...;if run mountubi; then ubifsload ${loadaddr} /boot/zImage;ubifsload ${fdtaddr} /boot/dtbs/${fdtfile};ubifsumount; setenv bootargs console=${console} ubi.mtd=1 root=ubi0:rootfs ro rootfstype=ubifs  rootwait ${mtdparts};bootz ${loadaddr} - ${fdtaddr};fi
console=ttyS0,115200
ethact=egiga0
fdtaddr=0x800000
fdtdir=/boot/dtbs
fdtfile=kirkwood-pogo_e02.dtb
ipaddr=10.10.10.3
loadaddr=0x810000
loadfdt=echo loading ${fdtdir}/${fdtfile} ...; load ${devtype} ${bootpart} ${fdtaddr} ${fdtdir}/${fdtfile}
loadimage=load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilez} || load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/${bootfilem}
loadrd=load ${devtype} ${bootpart} ${rdaddr} ${bootdir}/${rdfile}
mainargs=setenv bootargs console=${console} ${mtdparts} root=${root} rw rootwait ${optargs} ${ncargs}
mountubi=ubi part rootfs; ubifsmount ubi0:rootfs
mtdids=nand0=orion_nand
mtdparts=mtdparts=orion_nand:1M(u-boot),-(rootfs)
ncip=10.10.10.5
ncipk=10.10.10.4
netconsole=on
preboot=if env exists netconsole && test ${netconsole} = on; then if ping ${ncip}; then  setenv stdin nc; setenv stdout nc;  setenv stderr nc; version; if env exists ncargsusr; then echo ncargs has been defined by user; setenv ncargs ${ncargsusr}; else setenv ncargs ignore_loglevel netconsole=6665@${ipaddr}/eth0,6666@${ncipk}/; fi; fi; else echo Netconsole has been turned off.; echo To turn it on, set netconsole variable to on.; setenv stdin; setenv stdout; setenv stderr; setenv ncargs; fi
rdaddr=0x1100000
rdfile=initramfs-linux.img
startboot=usb start; for devtype in usb ; do  setenv devnum 0; while ${devtype} dev ${devnum}; do  echo ${devtype} found on device ${devnum}; setenv bootpart ${devnum}:1; echo Checking for: ${bootdir}/uEnv.txt ...; if test -e ${devtype} ${bootpart} ${bootdir}/uEnv.txt; then  load ${devtype} ${bootpart} ${loadaddr} ${bootdir}/uEnv.txt; env import -t ${loadaddr} ${filesize}; echo Loaded environment from ${bootdir}/uEnv.txt; echo Checking if uenvcmd is set ...; if test -n ${uenvcmd}; then  echo Running uenvcmd ...; run uenvcmd; fi; fi; if run loadimage; then if env exists root; then echo root has been defined by user; else part uuid ${devtype} ${bootpart} uuid; setenv root PARTUUID=${uuid}; fi;  run mainargs; if run loadfdt; then  if run loadrd; then  bootz ${loadaddr} ${rdaddr}:${filesize} ${fdtaddr}; else  bootz ${loadaddr} - ${fdtaddr}; fi; else  if run loadrd; then echo Booting uImage with initrd;  bootm ${loadaddr} ${rdaddr}:${filesize}; else  bootm ${loadaddr}; fi; fi; else  echo No kernel found; fi; setexpr devnum ${devnum} + 1; done; done;
ethaddr=00:25:31:04:46:23

and how to boot with zimage or dtb file?
my plug boots sometimes and sometimes not

thank you
Re: e02 not booting :(
April 13, 2016 05:14PM
nick,

> and how to boot with zimage or dtb file?
> my plug boots sometimes and sometimes not
>

Your envs look fine.

But you have been booting without a separate DTB. This means your Arch rootfs is one that has the DTB embbeded in uImage.

- So to boot with zImage, the DTB could be embedded in there too, or it could be separate. If your rootfs has zImage then u-boot will try to boot that.

- To boot with separate DTB, Arch has an update package that you just install (I don't remember the exact name). After you run that pacman command, your rootfs has the DTB file located in /boot/dtbs folder and your u-boot will detect that properly.

The bottom line is you should do it the Arch way: run that pacman update to make your rootfs ready for separate DTB booting. You should not have to change any of the u-boot envs yourself.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Re: e02 not booting :(
April 14, 2016 07:07PM
nick2012 Wrote:
-------------------------------------------------------

> And yes i am more familiar with debian codes and
> always find it more stable.

Nick, so why are you not running Debian ? If you need help to install Debian then post the questions here.

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: