|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 12, 2012 02:32PM |
Registered: 14 years ago Posts: 78 |
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 12, 2012 04:44PM |
Registered: 14 years ago Posts: 502 |
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 12, 2012 06:48PM |
Registered: 14 years ago Posts: 78 |
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 12, 2012 09:17PM |
Registered: 14 years ago Posts: 502 |
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 12, 2012 09:53PM |
Registered: 14 years ago Posts: 502 |
u-boot>> tftpboot 0x800000 uboot.mtd0.kwb-2011.12-L2Cdisabled-davysconfig Using egiga0 device TFTP from server 192.168.11.149; our IP address is 192.168.11.187 Filename 'uboot.mtd0.kwb-2011.12-L2Cdisabled-davysconfig'. Load address: 0x800000 Loading: #################################### done Bytes transferred = 524288 (80000 hex) u-boot>> nand erase 0x0 0x80000 NAND erase: device 0 offset 0x0, size 0x80000 Erasing at 0x60000 -- 100% complete. OK u-boot>> nand write.e 0x800000 0x0 0x80000 NAND write: device 0 offset 0x0, size 0x80000 524288 bytes written: OK u-boot>> reset resetting ... U-Boot 2011.12 (Feb 12 2012 - 21:33:07) 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 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 u-boot>> version U-Boot 2011.12 (Feb 12 2012 - 21:33:07) Seagate FreeAgent DockStar arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1 GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709
|
Robert Mugabe
Re: Newer uBoot as workaround to 3.2 kernel problem? February 13, 2012 07:38AM |
|
nrq
Re: Newer uBoot as workaround to 3.2 kernel problem? February 13, 2012 01:23PM |
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 13, 2012 05:03PM |
Registered: 14 years ago Posts: 502 |
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 13, 2012 05:28PM |
Registered: 14 years ago Posts: 502 |
davygravy@bitbaker64:~$ nc -up 6666 192.168.11.187 6666
U-Boot 2011.12 (Feb 12 2012 - 21:33:07)
Seagate FreeAgent DockStar
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1
GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709
Hit any key to stop autoboot: 9
0
u-boot>>
u-boot>>
u-boot>> printenv ipaddr
printenv ipaddr
ipaddr=192.168.11.187
u-boot>> boot
boot
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... EHCI timed out on TD - token=0x80008c80
4 USB Device(s) found
scanning bus for storage devices... 0 Storage Device(s) found
** Block device usb 0 not supported
** Invalid boot device **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000010000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 219 MiB
UBI: number of good PEBs: 1752
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 1731
UBI: total number of reserved PEBs: 21
UBI: number of PEBs reserved for bad PEB handling: 17
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
** Block device usb 0 not supported
** Block device usb 1 not supported
** Block device usb 2 not supported
** Block device usb 3 not supported
** Block device usb 0 not supported
** Block device usb 0 not supported
Wrong Image Format for bootm command
ERROR: can't get kernel image!
stopping USB..
NAND read: device 0 offset 0x100000, size 0x400000
4194304 bytes read: OK
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-2.6.32.18-dockstar
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 3236180 Bytes = 3.1 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
U-Boot 2011.12 (Feb 12 2012 - 21:33:07)
Seagate FreeAgent DockStar
arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1
GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709
Hit any key to stop autoboot: 0
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 4 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/rescueme" from usb device 0:1 (usbda1)
** File not found /rescueme
reading /rescueme.txt
** Unable to read "/rescueme.txt" from usb 0:1 **
Creating 1 MTD partitions on "nand0":
0x000002500000-0x000010000000 : "mtd=3"
UBI: attaching mtd1 to ubi0
UBI: physical eraseblock size: 131072 bytes (128 KiB)
UBI: logical eraseblock size: 129024 bytes
UBI: smallest flash I/O unit: 2048
UBI: sub-page size: 512
UBI: VID header offset: 512 (aligned 512)
UBI: data offset: 2048
UBI: attached mtd1 to ubi0
UBI: MTD device name: "mtd=3"
UBI: MTD device size: 219 MiB
UBI: number of good PEBs: 1752
UBI: number of bad PEBs: 0
UBI: max. allowed volumes: 128
UBI: wear-leveling threshold: 4096
UBI: number of internal volumes: 1
UBI: number of user volumes: 0
UBI: available PEBs: 1731
UBI: total number of reserved PEBs: 21
UBI: number of PEBs reserved for bad PEB handling: 17
UBI: max/mean erase counter: 1/1
UBIFS error (pid 0): ubifs_get_sb: cannot open "ubi:rootfs", error -19
Error reading superblock on volume 'ubi:rootfs'!
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1 bytes read
Found bootable drive on usb 0:1
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1623456 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
4943795 bytes read
## Booting kernel from Legacy Image at 00800000 ...
Image Name: Linux-3.3.0-rc3-kirkwood
Image Type: ARM Linux Kernel Image (uncompressed)
Data Size: 1623392 Bytes = 1.5 MiB
Load Address: 00008000
Entry Point: 00008000
Verifying Checksum ... OK
## Loading init Ramdisk from Legacy Image at 01100000 ...
Image Name: initramfs-3.3.0-rc3-kirkwood
Image Type: ARM Linux RAMDisk Image (gzip compressed)
Data Size: 4943731 Bytes = 4.7 MiB
Load Address: 00000000
Entry Point: 00000000
Verifying Checksum ... OK
Loading Kernel Image ... OK
OK
Starting kernel ...
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 14, 2012 12:42PM |
Registered: 14 years ago Posts: 78 |
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 14, 2012 08:05PM |
Registered: 14 years ago Posts: 502 |
-sh-3.2# /etc/init.d/hbmgr.sh restartdoes just fine.
1 root 3400 S init
2 root SW< [kthreadd]
3 root SWN [ksoftirqd/0]
4 root SW< [events/0]
5 root SW< [khelper]
46 root SW< [kblockd/0]
49 root SW< [khubd]
51 root SW< [kmmcd]
65 root SW [crypto]
66 root SW [crypto_ret]
71 root SW [pdflush]
72 root SW [pdflush]
73 root SW< [kswapd0]
74 root SW< [aio/0]
225 root SW< [mtdblockd]
226 root SW< [nftld]
260 root SW< [kcryptd/0]
313 root 3404 S udhcpc -b Pogoplug
315 root 3400 S telnetd
318 root 2100 S /usr/sbin/dropbear
319 root 2740 R -sh
562 root SW< [xce]
563 root 1696 S /usr/local/cloudengines/bin/hbwd /usr/local/cloudengi
564 root 11852 S /usr/local/cloudengines/bin/hbplug
635 root 3404 R ps
mount
rootfs on / type rootfs (rw)
/dev/root on / type jffs2 (ro)
none on /proc type proc (rw)
none on /sys type sysfs (rw)
none on /dev/pts type devpts (rw)
none on /tmp type tmpfs (rw)
/tmp/.cemnt/sda1 on /tmp/.cemnt/mnt_sda1 type vfat (rw,nosuid,nodev,noexec,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,utf8)
#Uncomment the line below to enable the pogoplug service #/etc/init.d/hbmgr.sh start
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 14, 2012 08:43PM |
Registered: 14 years ago Posts: 502 |
u-boot>> print ethaddr print ethaddr ethaddr=00:10:75:1A:5C:73 u-boot>> setenv ethaddr 00:10:75:1A:5C:74 setenv ethaddr 00:10:75:1A:5C:74 u-boot>> saveenv u-boot>> print ethaddr print ethaddr ethaddr=00:10:75:1A:5C:74 u-boot>> u-boot>> reset reset resetting ... U-Boot 2011.12 (Feb 12 2012 - 21:33:07) Seagate FreeAgent DockStar arm-none-linux-gnueabi-gcc (Sourcery G++ Lite 2009q3-67) 4.4.1 GNU ld (Sourcery G++ Lite 2009q3-67) 2.19.51.20090709 Hit any key to stop autoboot: 9 0 u-boot>> print ethaddr print ethaddr ethaddr=00:10:75:1A:5C:74 u-boot>>
davygravy@bitbaker64:~/u-boot-2011.12/arch/arm$ fgrep -rin 'CONFIG_ENV_OVERWRITE' . ./include/asm/arch-kirkwood/config.h:99:#define CONFIG_ENV_OVERWRITE /* ethaddr can be reprogrammed */ ./include/asm/arch/config.h:99:#define CONFIG_ENV_OVERWRITE /* ethaddr can be reprogrammed */
|
Robert Mugabe
Re: Newer uBoot as workaround to 3.2 kernel problem? February 15, 2012 05:06AM |
Quote
pazos
I'm going to test the new bootloader over this week, if I can see that everything works (like it seems to be) I will post uboot binaries here with some instructions to flash it over jeff doozan uboot (in this case we can delete all enviroment values added, cause the enviroment is not going to be overwritten).
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 15, 2012 06:37AM |
Registered: 14 years ago Posts: 502 |
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 15, 2012 09:12AM |
Registered: 14 years ago Posts: 78 |
Quote
Robert Mugabe
Consider the case where a person might want to perform a u-boot resetenv
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 15, 2012 05:00PM |
Registered: 14 years ago Posts: 502 |
$FLASH_ERASE /dev/mtd0 0xc0000 1 $NANDWRITE -s 786432 /dev/mtd0 "$UBOOT_ENV"
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 15, 2012 05:21PM |
Registered: 14 years ago Posts: 502 |
/* * Environment variables configurations */ #ifdef CONFIG_CMD_NAND #define CONFIG_ENV_IS_IN_NAND 1 #define CONFIG_ENV_SECT_SIZE 0x20000 /* 128K */ #else #define CONFIG_ENV_IS_NOWHERE 1 /* if env in SDRAM */ #endif /* * max 4k env size is enough, but in case of nand * it has to be rounded to sector size */ #define CONFIG_ENV_SIZE 0x20000 /* 128k */ #define CONFIG_ENV_ADDR 0xc0000 #define CONFIG_ENV_OFFSET 0xc0000 /* env starts here */
u-boot>> nand help
nand - NAND sub-system
Usage:
nand info - show available NAND devices
nand device [dev] - show or set current device
nand read - addr off|partition size
nand write - addr off|partition size
read/write 'size' bytes starting at offset 'off'
to/from memory address 'addr', skipping bad blocks.
nand read.raw - addr off|partition
nand write.raw - addr off|partition
Use read.raw/write.raw to avoid ECC and access the page as-is.
nand erase[.spread] [clean] off size - erase 'size' bytes from offset 'off'
With '.spread', erase enough for given file size, otherwise,
'size' includes skipped bad blocks.
nand erase.part [clean] partition - erase entire mtd partition'
nand erase.chip [clean] - erase entire chip'
nand bad - show bad blocks
nand dump[.oob] off - dump page
nand scrub [-y] off size | scrub.part partition | scrub.chip
really clean NAND erasing bad blocks (UNSAFE)
nand markbad off [...] - mark bad block(s) at offset (UNSAFE)
nand biterr off - make a bit error at offset (UNSAFE)
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 15, 2012 06:17PM |
Registered: 14 years ago Posts: 502 |
|
dpffan
Re: Newer uBoot as workaround to 3.2 kernel problem? February 15, 2012 07:29PM |
|
Robert Mugabe
Re: Newer uBoot as workaround to 3.2 kernel problem? February 15, 2012 07:35PM |
Quote
davygravy
I'm wondering why he chose not to put all the usb scan script infrastructure in the hard-coded uboot env vars.
u-boot>> env env - environment handling commands Usage: env default -f - reset default environment env edit name - edit environment variable env export [-t | -b | -c] [-s size] addr [var ...] - export environment env import [-d] [-t | -b | -c] addr [size] - import environment env print [name ...] - print environment env run var [...] - run commands in an environment variable env save - save environment env set [-f] name [arg ...]
u-boot>> printenv arcNumber=2998 baudrate=115200 bootcmd=usb start; run force_rescue_bootcmd; run ubifs_bootcmd; run usb_bootcmd; usb stop; run rescue_bootcmd; run pogo_bootcmd; reset bootdelay=3 console=ttyS0,115200 ethact=egiga0 ethaddr=00:10:75:xx:xx:xx force_rescue=0 force_rescue_bootcmd=if test $force_rescue -eq 1 || ext2load usb 0:1 0x1700000 /rescueme 1 || fatload usb 0:1 0x1700000 /rescueme.txt 1; then run rescue_bootcmd; fi if_netconsole=ping $serverip ipaddr=192.168.0.104 led_error=orange blinking led_exit=green off led_init=green blinking mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) partition=nand0,2 pogo_bootcmd=if fsload uboot-original-mtd0.kwb; then go 0x800200; fi preboot=run if_netconsole start_netconsole 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 rescue_installed=0 rescue_set_bootargs=setenv bootargs console=$console ubi.mtd=2 root=ubi0:rootfs ro rootfstype=ubifs $mtdparts $rescue_custom_params serverip=192.168.0.253 start_netconsole=setenv ncip $serverip; setenv bootdelay 10; setenv stdin nc; setenv stdout nc; setenv stderr nc; version; stderr=serial stdin=serial stdout=serial 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 ubifs_mtd=3 ubifs_set_bootargs=setenv bootargs console=$console ubi.mtd=$ubifs_mtd root=ubi0:rootfs rootfstype=ubifs $mtdparts $ubifs_custom_params 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 usb_bootcmd=run usb_init; run usb_set_bootargs; run usb_boot usb_device=0:1 usb_init=run usb_scan usb_root=/dev/sda1 usb_rootdelay=10 usb_rootfstype=ext2 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_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_scan_list=1 2 3 4 usb_set_bootargs=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts $usb_custom_params
u-boot>> env default -f ## Resetting to default environment u-boot>> printenv arcNumber=2097 baudrate=115200 bootcmd=run bootcmd_usb; usb stop; run bootcmd_pogo; reset bootcmd_pogo=fsload uboot-original-mtd0.kwb; go 0x800200 bootcmd_usb=run usb_init; run usb_load_uimage; run set_bootargs_usb; run usb_boot; bootdelay=3 console=ttyS0,115200 led_error=orange blinking led_exit=green off led_init=green blinking mainlineLinux=yes mtdids=nand0=orion_nand mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),32M(rootfs),-(data) partition=nand0,2 set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$usb_rootdelay rootfstype=$usb_rootfstype $mtdparts usb_boot=if ext2load usb $usb_device 0x1100000 /boot/uInitrd; then bootm 0x800000 0x1100000;else bootm 0x800000;fi; usb_device=0:1 usb_init=usb start usb_load_uimage=mw 0x800000 0 1; ext2load usb $usb_device 0x800000 /boot/uImage usb_root=/dev/sda1 usb_rootdelay=10 usb_rootfstype=ext2
|
Robert Mugabe
Re: Newer uBoot as workaround to 3.2 kernel problem? February 15, 2012 07:47PM |
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 15, 2012 09:57PM |
Registered: 14 years ago Posts: 502 |
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 16, 2012 03:41PM |
Registered: 14 years ago Posts: 78 |
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 16, 2012 08:00PM |
Registered: 14 years ago Posts: 502 |
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 19, 2012 11:59PM |
Registered: 14 years ago Posts: 502 |
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
Hit any key to stop autoboot: 0
(Re)start USB...
USB: Register 10011 NbrPorts 1
USB EHCI 1.00
scanning bus for devices... 3 USB Device(s) found
scanning bus for storage devices... 1 Storage Device(s) found
Loading file "/boot/uImage" from usb device 0:1 (usbda1)
1623456 bytes read
Loading file "/boot/uInitrd" from usb device 0:1 (usbda1)
4943795 bytes read
## Booting kernel from Legacy Image at 00800000 ...
...
OK
Starting kernel ...
Uncompressing Linux... done, booting the kernel.
[ 0.000000] Booting Linux on physical CPU 0
[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Linux version 3.3.0-rc3-kirkwood (davygravy@bitbaker64) (gcc version 4.6.1 (Sourcery CodeBench Lite 2011.09-70) ) #1 Sat Feb 11 11:22
[ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=00053977
[ 0.000000] CPU: VIVT data cache, VIVT instruction cache
[ 0.000000] Machine: Marvell SheevaPlug Reference Board
[ 0.000000] Memory policy: ECC disabled, Data cache writeback
...
[ 18.540381] console [ttyS0] enabled
[ 18.544736] NAND device: Manufacturer ID: 0xad, Chip ID: 0xf1 (Hynix NAND 128MiB 3,3V 8-bit)
[ 18.553253] Scanning device for bad blocks
[ 18.633236] 4 cmdlinepart partitions found on MTD device orion_nand
[ 18.639541] Creating 4 MTD partitions on "orion_nand":
[ 18.644707] 0x000000000000-0x000000100000 : "u-boot"
[ 18.650346] 0x000000100000-0x000000500000 : "uImage"
[ 18.655952] 0x000000500000-0x000002500000 : "rootfs"
[ 18.661526] 0x000002500000-0x000008000000 : "data"
[ 18.667438] mousedev: PS/2 mouse device common for all mice
[ 19.675673] rtc-mv rtc-mv: internal RTC not ticking
[ 19.680662] i2c /dev entries driver
[ 19.684312] cpuidle: using governor ladder
...
Debian GNU/Linux wheezy/sid debian ttyS0
...
root@debian:~# free
total used free shared buffers cached
Mem: 255436 34412 221024 0 1968 22728
-/+ buffers/cache: 9716 245720
Swap: 258044 0 258044
|
gz
Re: Newer uBoot as workaround to 3.2 kernel problem? February 22, 2012 09:27PM |
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 22, 2012 10:34PM |
Registered: 14 years ago Posts: 502 |
|
Joschi75
Re: Newer uBoot as workaround to 3.2 kernel problem? February 23, 2012 02:23AM |
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 23, 2012 02:32AM |
Admin Registered: 14 years ago Posts: 19,920 |
|
Re: Newer uBoot as workaround to 3.2 kernel problem? February 23, 2012 04:05AM |
Registered: 14 years ago Posts: 502 |