|
OpenWRT 2nd stage u-boot problems on Pogoplug-E02 June 24, 2016 07:31AM |
Registered: 10 years ago Posts: 24 |
USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME], egiga1
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x100000, size 0x200000
Reading data from 0x2ff800 -- 100% complete.
2097152 bytes read: OK
## Booting image at 00800000 ...
Image Name: OpenWrt Das U-Boot uImage
Created: 2016-01-02 1:38:50 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 454856 Bytes = 444.2 kB
Load Address: 00600000
Entry Point: 00600000
Verifying Checksum ... OK
CE>> setenv ipaddr 100.2.3.3
CE>> setenv serverip 100.2.3.5
CE>> setenv netmask 255.255.255.0
CE>> printenv
baudrate=115200
loads_echo=0
rootpath=/mnt/ARM_FS/
run_diag=yes
console=console=ttyS0,115200
CASset=min
MALLOC_len=1
ethprime=egiga0
bootargs_root=root=/dev/mtdblock2 ro
ethmtu=1500
usb0Mode=host
nandEcc=1bit
ethact=egiga0
bootargs=console=ttyS0,115200 root=/dev/mtdblock2 ro
ethaddr=00:01:02:03:04:05
cesvcid=ABCDEFGHIJKLMNOPQRS
ceboardver=PPV2
bootcmd=nand read.e 0x800000 0x100000 0x200000; setenv bootargs $(console) $(bo0
stdin=serial
stdout=serial
stderr=serial
mainlineLinux=no
enaMonExt=no
enaCpuStream=no
enaWrAllo=no
pexMode=RC
disL2Cache=no
setL2CacheWT=yes
disL2Prefetch=yes
enaICPref=yes
enaDCPref=yes
sata_dma_mode=yes
netbsd_en=no
vxworks_en=no
bootdelay=3
disaMvPnp=no
serverip=100.2.3.5
netmask=255.255.255.0
ipaddr=100.2.3.3
Environment size: 799/131068 bytes
CE>> mw 0x800000 0xffff 0x80000
CE>> tftpboot 0x800000 openwrt-kirkwood-pogo_e02_second_stage-u-boot.img
Using egiga0 device
TFTP from server 100.2.3.5; our IP address is 100.2.3.3
Filename 'openwrt-kirkwood-pogo_e02_second_stage-u-boot.img'.
Load address: 0x800000
Loading: #################################################################
########################
done
Bytes transferred = 454920 (6f108 hex)
CE>> nand erase 0x100000 0x80000
NAND erase: device 0 offset 0x100000, size 0x80000
Erasing at 0x160000 -- 100% complete.
OK
CE>> nand write.e 0x800000 0x100000 0x80000
NAND write: device 0 offset 0x100000, size 0x80000
Writing data at 0x17f800 -- 100% complete.
524288 bytes written: OK
Environment size: 830/131068 bytes
CE>> reset
U-Boot 1.1.4 (Sep 28 2009 - 11:55:23) Cloud Engines v2.0 (3.4.16)
U-Boot code: 00600000 -> 0067FFF0 BSS: -> 00690D60
Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz
DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 256MB
DRAM Total size 256MB 16bit width
Flash: 0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
CPU : Marvell Feroceon (Rev 1)
CLOUD ENGINES BOARD: PPV2
Streaming disabled
Write allocate disabled
USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME], egiga1
Hit any key to stop autoboot: 0
NAND read: device 0 offset 0x100000, size 0x200000
Reading data from 0x2ff800 -- 100% complete.
2097152 bytes read: OK
## Booting image at 00800000 ...
Image Name: OpenWrt Das U-Boot uImage
Created: 2016-01-02 1:38:50 UTC
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 454856 Bytes = 444.2 kB
Load Address: 00600000
Entry Point: 00600000
Verifying Checksum ... OK
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 June 24, 2016 06:45PM |
Admin Registered: 13 years ago Posts: 18,564 |
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 June 24, 2016 07:52PM |
Admin Registered: 13 years ago Posts: 18,564 |
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 June 24, 2016 10:08PM |
Registered: 10 years ago Posts: 24 |
Quote
bodhi
Chainloading from older u-boot (1.1.4) to a modern u-boot such as 2014 or newer is not going to work. You might as well install new u-boot on mtd0 and not having to worry about it at all:
http://forum.doozan.com/read.php?3,12381
Quote
bodhi
However, looks like the chainloading was not set up correctly also. No where in your envs that I can find a "go" command, Is there?
bootcmd=nand read.e 0x800000 0x100000 0x200000; setenv bootargs $(console) $(bootargs_root); bootm 0x800000
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 June 26, 2016 12:09AM |
Admin Registered: 13 years ago Posts: 18,564 |
> bootcmd=nand read.e 0x800000 0x100000 0x200000; > setenv bootargs $(console) $(bootargs_root); bootm > 0x800000 >>
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 June 26, 2016 02:47PM |
Registered: 10 years ago Posts: 24 |
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 June 27, 2016 03:31AM |
Admin Registered: 13 years ago Posts: 18,564 |
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 June 29, 2016 08:06PM |
Registered: 10 years ago Posts: 24 |
mw 0x800000 0xffff 0x80000 tftpboot 0x800000 openwrt-kirkwood-pogo_e02_second_stage-u-boot.img nand erase 0x100000 0x80000 nand write.e 0x800000 0x100000 0x80000
mtd# mtd0 mtd1 mtd2 mtd3 start 0x000000 0x0e0000 0x100000 0x0200000 size 0x0e0000 0x100000 0x100000 0x7e00000 in Bytes 896 KiB 128 KiB 1 MiB 126 MiB name u-boot u-boot env second_stage_u-boot rootfs file system none none none ubifs
dd bs=128k conv=sync if=openwrt-kirkwood-pogo_e02-u-boot.kwb of=openwrt-kirkwood-pogo_e02-u-boot.aligned.kwb mw 0x800000 0xffff 0x80000 tftpboot 0x800000 openwrt-kirkwood-pogo_e02-u-boot.aligned.kwb nand erase 0x0 0xa4fff nand write.e 0x800000 0x0 0x80000
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 June 29, 2016 09:14PM |
Admin Registered: 13 years ago Posts: 18,564 |
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 July 17, 2016 07:40PM |
Registered: 10 years ago Posts: 24 |
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 July 18, 2016 02:05AM |
Admin Registered: 13 years ago Posts: 18,564 |
Quote
So it seems that I currently don't have a working system - I can boot the machine and it chainloads from Cloud Engine u-boot into 2nd stage OpenWRT u-boot and then hangs, or I interrupt the stock u-boot and then can't boot the old Cloud Engine linux as its kernel (uimage) has been overwritten by the 2nd stage u-boot.
usb start
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 July 18, 2016 02:55PM |
Registered: 10 years ago Posts: 24 |
> usb start >
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 July 18, 2016 03:30PM |
Admin Registered: 13 years ago Posts: 18,564 |
> > usb start > >>
usb startdid not work?
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 July 18, 2016 03:32PM |
Admin Registered: 13 years ago Posts: 18,564 |
Quote
As I don't currently have a working OS I can't flash the newer u-boot from there, though I could use TFTP from the stock u-boot to flash it?
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 July 21, 2016 12:29PM |
Registered: 10 years ago Posts: 24 |
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 July 21, 2016 01:52PM |
Registered: 10 years ago Posts: 24 |
>Quote
As I don't currently have a working OS I
> can't flash the newer u-boot from there, though I
> could use TFTP from the stock u-boot to flash
> it?
|
How to boot new Debian rootfs using stock u-boot tftp July 21, 2016 02:54PM |
Admin Registered: 13 years ago Posts: 18,564 |
Quote
Updated 20 Feb 2016:
This Debian-4.4.0-kirkwood-tld-1-rootfs-bodhi.tar.bz2 is to keep in sync with kernel Linux-4.4.0-kirkwood-tld-1.
Quote
4. Create uImage with embedded DTB for booting with older u-boots (2012 or earlier). Skip this step if you have installed the latest U-Boot for Kirkwood (or are installing this u-boot at the same time).
Please replace kirkwood-goflexnet.dtb below with the correct DTB name for your box (see the folder /media/sdb1/boot/dts).
Generate the uImage with DTB embedded inside:
cd /media/sdb1/boot
cp -a zImage-4.4.0-kirkwood-tld-1 zImage.fdt
cat dts/kirkwood-pogo_e02.dtb >> zImage.fdt
mv uImage uImage.orig
mkimage -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n Linux-4.4.0-kirkwood-tld-1 -d zImage.fdt uImage
sync
mkdir /tftproot cp -a /media/sdb1/boot/uImage /tftproot cp -a /media/sdb1/boot/uInitrd /tftproot
setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10'
setenv mtdids 'nand0=orion_nand' setenv partition 'nand0,2' setenv bootargs 'console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)'
setenv ipaddr x.x.x.x setenv serverip x.x.x.y tftp 0x800000 uImage tftp 0x1100000 uInitrd
bootm 0x800000 0x1100000
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 July 24, 2016 12:03AM |
Registered: 7 years ago Posts: 1 |
U-Boot 2011.12 (Feb 20 2012 - 21:21:59)
Pogoplug E02
SoC: Kirkwood 88F6281_A0
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 128 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
88E1116 Initialized on egiga0
Using egiga0 device
host 1.2.3.5 is alive
U-Boot 1.1.4 (Sep 28 2009 - 11:55:23) Cloud Engines v2.0 (3.4.16)
U-Boot code: 00600000 -> 0067FFF0 BSS: -> 00690D60
Soc: 88F6281 A0 (DDR2)
CPU running @ 1200Mhz L2 running @ 400Mhz
SysClock = 400Mhz , TClock = 200Mhz
DRAM CAS Latency = 5 tRP = 5 tRAS = 18 tRCD=6
DRAM CS[0] base 0x00000000 size 256MB
DRAM Total size 256MB 16bit width
Flash: 0 kB
Addresses 8M - 0M are saved for the U-Boot usage.
Mem malloc Initialization (8M - 7M): Done
NAND:128 MB
CPU : Marvell Feroceon (Rev 1)
CLOUD ENGINES BOARD: PPV2
Streaming disabled
Write allocate disabled
USB 0: host mode
PEX 0: interface detected no Link.
Net: egiga0 [PRIME], egiga1
Hit any key to stop autoboot: 0
CE>> mw 0x800000 0xffff 0x80000
CE>> tftpboot 0x800000 openwrt-kirkwood-pogo_e02-u-boot.al.kwb
Using egiga0 device
TFTP from server 1.2.3.5; our IP address is 1.2.3.4
Filename 'openwrt-kirkwood-pogo_e02-u-boot.al.kwb'.
Load address: 0x800000
Loading: #################################################################
######################################
done
Bytes transferred = 524288 (80000 hex)
CE>> nand erase 0x0 0xa4fff
NAND erase: device 0 offset 0x0, size 0xa4fff
Erasing at 0xa0000 -- 116% complete.
OK
CE>> nand write.e 0x800000 0x0 0x80000
NAND write: device 0 offset 0x0, size 0x80000
Writing data at 0x7f800 -- 100% complete.
524288 bytes written: OK
CE>> reset
U-Boot 2014.10 (Jul 24 2015 - 20:11:30)
Pogo E02
SoC: Kirkwood 88F6281_A0
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 128 MiB
NAND read from offset e0000 failed -74
*** Warning - readenv() failed, using default environment
In: serial
Out: serial
Err: serial
Net: egiga0
Error: egiga0 address not set.
Hit any key to stop autoboot: 0
PogoE02>
PogoE02> nand erase 0x200000 0x7e00000
NAND erase: device 0 offset 0x200000, size 0x7e00000
Erasing at 0x7fe0000 -- 100% complete.
OK
PogoE02> ubi part root ; ubi remove rootfs ; ubi create rootfs
UBI: attaching mtd1 to ubi0
UBI: scanning is finished
UBI: empty MTD device detected
UBI: attached mtd1 (name "mtd=3", size 126 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
UBI: VID header offset: 512 (aligned 512), data offset: 2048
UBI: good PEBs: 1008, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 0, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 1/0, WL threshold: 4096, image sequence number: 0
UBI: available PEBs: 984, total reserved PEBs: 24, PEBs reserved for bad PEB handling: 20
Volume rootfs not found!
No size specified -> Using max size (126959616)
Creating dynamic volume rootfs of size 126959616
PogoE02> tftpboot 0x800000 openwrt-15.05-kirkwood-pogoe02-rootfs.ubifs
*** ERROR: `ethaddr' not set
PogoE02>
PogoE02> setenv ethaddr 00:11:22:33:44:55
...
PogoE02> tftpboot 0x800000 openwrt-15.05-kirkwood-pogoe02-rootfs.ubifs
Using egiga0 device
TFTP from server 1.2.3.5; our IP address is 1.2.3.4
Filename 'openwrt-15.05-kirkwood-pogoe02-rootfs.ubifs'.
Load address: 0x800000
Loading: #################################################################
#################################################################
#################################################################
#################################################################
################################################
5.4 MiB/s
done
Bytes transferred = 4515840 (44e800 hex)
PogoE02> ubi write 0x800000 rootfs ${filesize}
4515840 bytes written to volume rootfs
PogoE02> reset
resetting ...
U-Boot 2014.10 (Jul 24 2015 - 20:11:30)
Pogo E02
SoC: Kirkwood 88F6281_A0
DRAM: 256 MiB
WARNING: Caches not enabled
NAND: 128 MiB
In: serial
Out: serial
Err: serial
Net: egiga0
Hit any key to stop autoboot: 0
UBI: attaching mtd1 to ubi0
UBI: scanning is finished
UBI: attached mtd1 (name "mtd=3", size 126 MiB) to ubi0
UBI: PEB size: 131072 bytes (128 KiB), LEB size: 129024 bytes
UBI: min./max. I/O unit sizes: 2048/2048, sub-page size 512
UBI: VID header offset: 512 (aligned 512), data offset: 2048
UBI: good PEBs: 1008, bad PEBs: 0, corrupted PEBs: 0
UBI: user volume: 1, internal volumes: 1, max. volumes count: 128
UBI: max/mean erase counter: 2/1, WL threshold: 4096, image sequence number: 0
UBI: available PEBs: 0, total reserved PEBs: 1008, PEBs reserved for bad PEB handling: 20
** File not found /boot/zImage **
** File not found /boot/pogo_e02.dtb **
Unmounting UBIFS volume rootfs!
libfdt fdt_check_header(): FDT_ERR_BADMAGIC
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
No FDT memory address configured. Please configure
the FDT address via "fdt addr <address>" command.
Aborting!
Bad Linux ARM zImage magic!
PogoE02>
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 July 31, 2016 03:57PM |
Registered: 10 years ago Posts: 24 |
modprobe: module ext3 not found in modules.dep Begin: Checking root file system ... fsck from util-linux 2.25.2 fsck: error 2 (No such file or directory) while executing fsck.ext3 for /dev/sda1 fsck exited with status code 8 done. Warning: File system check failed but did not detect errors [ 11.704264] EXT4-fs (sda1): mounting ext3 file system using the ext4 subsystem(2) some kernel error about the Kirkwood hardware crypto:
[ 13.563600] marvell-cesa: probe of f1030000.crypto failed with error -524
root@debian:~# cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Num root@debian:~#
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 July 31, 2016 04:08PM |
Admin Registered: 13 years ago Posts: 18,564 |
# MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 August 10, 2016 03:42PM |
Registered: 10 years ago Posts: 24 |
> # MTD device name Device offset Env. size Flash > sector size Number of sectors > /dev/mtd0 0xc0000 0x20000 0x20000 >
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 August 10, 2016 10:15PM |
Registered: 10 years ago Posts: 24 |
root@debian:~# cat /proc/mtd dev: size erasesize name mtd0: 08000000 00020000 "orion_nand" root@debian:~#
root@debian:~# cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000 root@debian:~#
root@debian:~# fw_printenv | grep mtd mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) mtdids=nand0=orion_nand
r4. The rootfs partition is recommended to be type Ext3 (this is not a hard requirement, ext4 should boot OK, but Ext3 will ensure no problem).
fw_setenv mtdparts 'mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data)'
fw_setenv mtdparts 'mtdparts=orion_nand:128M(u-boot)'
fw_setenv dtb_file '/boot/dts/kirkwood-pogo_e02.dtb' mv /boot/uImage /boot/uImage.non-dtb mv /boot/uImage.orig /boot/uImage
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 August 11, 2016 12:55AM |
Admin Registered: 13 years ago Posts: 18,564 |
root@debian:~# cat /proc/mtd dev: size erasesize name mtd0: 08000000 00020000 "orion_nand" root@debian:~#
> root@debian:~# fw_printenv | grep mtd > mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage) > ,32M(rootfs),-(data) > mtdids=nand0=orion_nand >>
printenvtftp and boot like you did before and
dmesg cat /proc/mtd
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 August 11, 2016 01:15PM |
Registered: 10 years ago Posts: 24 |
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 August 11, 2016 03:23PM |
Admin Registered: 13 years ago Posts: 18,564 |
fw_printenv cat /proc/mtd cat /proc/cmdline
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 August 11, 2016 06:21PM |
Registered: 10 years ago Posts: 24 |
CE>> setenv bootargs "$(console) root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) ro" CE>> printenv bootargs bootargs="console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) ro"
root@debian:~# fw_printenv ethact=egiga0 bootdelay=3 baudrate=115200 mainlineLinux=yes console=ttyS0,115200 led_init=green blinking led_exit=green off led_error=orange blinking mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) mtdids=nand0=orion_nand partition=nand0,2 stdin=serial stdout=serial stderr=serial rescue_installed=0 rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params rescue_bootcmd=if test $rescue_installed -eq 1; then run rescue_set_bootargs; nand read.e 0x800000 0x100000 0x400000; bootm 0x800000; else run pogo_bootcmd; fi pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi force_rescue=0 force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi ubifs_mtd=3 ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params ubifs_bootcmd=run ubifs_set_bootargs; if ubi part data && ubifsmount rootfs && ubifsload 0x800000 /boot/uImage && ubifsload 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; fi usb_scan=usb_scan_done=0;for scan in $usb_scan_list; do run usb_scan_$scan; if test $usb_scan_done -eq 0 && ext2load usb $usb 0x800000 /boot/uImage 1; then usb_scan_done=1; echo "Found bootable drive on usb $usb"; setenv usb_device $usb; setenv usb_root /dev/$dev; fi; done usb_scan_list=1 2 3 4 usb_scan_1=usb=0:1 dev=sda1 usb_scan_2=usb=1:1 dev=sdb1 usb_scan_3=usb=2:1 dev=sdc1 usb_scan_4=usb=3:1 dev=sdd1 usb_init=run usb_scan usb_device=0:1 usb_root=/dev/sda1 usb_rootfstype=ext2 usb_rootdelay=10 usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot usb_boot=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage; if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000; else bootm 0x800000; fi bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd;usb stop; run rescue_bootcmd; run pogo_bootcmd; reset ethaddr=aa:bb:cc:dd:ee:ff arcNumber=2097 preboot_nc=setenv nc_ready 0; for pingstat in 1 2 3 4 5; do; sleep 1; if run if_netconsole; then setenv nc_ready 1; fi; done; if test $nc_ready -eq 1; then run start_netconsole; fi preboot=run preboot_nc ipaddr=192.168.0.1 netmask=255.255.255.0 if_netconsole=ping $serverip start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; serverip=192.168.0.2
root@debian:~# cat /proc/mtd dev: size erasesize name mtd0: 08000000 00020000 "orion_nand"
root@debian:~# cat /proc/cmdline "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10 mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) ro"
mw 0x800000 0xffff 0x80000 tftpboot 0x800000 openwrt-kirkwood-pogo_e02_second_stage-u-boot.img nand erase 0x100000 0x80000 nand write.e 0x800000 0x100000 0x80000
flash_erase /dev/mtd0 0 4 nandwrite /dev/mtd0 uboot-original-mtd0.kwb
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 August 12, 2016 01:35AM |
Admin Registered: 13 years ago Posts: 18,564 |
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 August 12, 2016 11:39AM |
Registered: 10 years ago Posts: 24 |
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 August 12, 2016 03:31PM |
Admin Registered: 13 years ago Posts: 18,564 |
setenv bootargs "console=ttyS0,115200 root=LABEL=rootfs rootdelay=10"
cat/proc/mtd
|
Re: OpenWRT 2nd stage u-boot problems on Pogoplug-E02 August 13, 2016 09:34PM |
Registered: 10 years ago Posts: 24 |
> cat/proc/mtd >