Iomega ix4-200d U-boot needed January 08, 2016 07:48AM |
Registered: 8 years ago Posts: 49 |
u-boot-rd88f6281a_400rd_nand.binAs far as I can see this code should generate it? https://github.com/niamster/uboot-marvell-openrd-ultimate
Re: Who can compile an u-boot bin for me? January 09, 2016 02:53AM |
Admin Registered: 13 years ago Posts: 18,997 |
dmesg cat /proc/cpuinfo
Re: Who can compile an u-boot bin for me? January 09, 2016 03:37PM |
Registered: 8 years ago Posts: 49 |
Re: Who can compile an u-boot bin for me? January 10, 2016 02:02AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Who can compile an u-boot bin for me? January 10, 2016 02:07AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Who can compile an u-boot bin for me? January 12, 2016 07:33AM |
Registered: 8 years ago Posts: 49 |
U-Boot 2015.10-tld-1 (Nov 08 2015 - 21:01:07 -0800) Marvell-Sheevaplug SoC: Kirkwood 88F6281_A1 DRAM: 512 MiB (ECC not enabled) WARNING: Caches not enabled NAND: 32 MiB *** Warning - bad CRC, using default environment In: serial Out: serial Err: serial Net: egiga0 PHY reset timed out 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 Sheevaplug>
Sheevaplug> setenv serverip 10.0.0.1 Sheevaplug> setenv ipaddr 10.0.0.2 Sheevaplug> mw 0x800000 0xffff 0x100000 Sheevaplug> tftp 0x800000 uboot.2015.10-tld-1.sheevaplug.mtd0.kwb Using egiga0 device TFTP from server 10.0.0.1; our IP address is 10.0.0.2 Filename 'uboot.2015.10-tld-1.sheevaplug.mtd0.kwb'. Load address: 0x800000 Loading: T T T T T T T T T T Retry count exceeded; starting again
eth0 Link encap:Ethernet Hardware Adresse D8:D3:85:04:F5:18 inet Adresse:10.0.0.1 Bcast:10.0.0.255 Maske:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:11 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 Sendewarteschlangenlänge:1000 RX bytes:0 (0.0 b) TX bytes:3662 (3.5 Kb) Interrupt:17
Sheevaplug> ping 10.0.0.1 Using egiga0 device ping failed; host 10.0.0.1 is not alive
Re: Who can compile an u-boot bin for me? January 12, 2016 01:42PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Who can compile an u-boot bin for me? January 12, 2016 02:11PM |
Registered: 8 years ago Posts: 49 |
Re: Who can compile an u-boot bin for me? January 12, 2016 11:21PM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Who can compile an u-boot bin for me? January 13, 2016 09:56AM |
Registered: 8 years ago Posts: 49 |
mw 0x0800000 0xffff 0x100000 nand erase 0x0 0x100000 loadb 0x0800000 115200
nand write 0x0800000 0x0 0x100000 reset
Re: Who can compile an u-boot bin for me? January 13, 2016 10:39AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Who can compile an u-boot bin for me? January 13, 2016 01:00PM |
Registered: 8 years ago Posts: 49 |
Re: Who can compile an u-boot bin for me? January 14, 2016 12:01AM |
Admin Registered: 13 years ago Posts: 18,997 |
printenv
boot
Re: Who can compile an u-boot bin for me? January 14, 2016 06:58AM |
Registered: 8 years ago Posts: 49 |
Sheevaplug> printenv arcNumber=2097 baudrate=115200 bootcmd=run bootcmd_uenv; run bootcmd_usb; reset bootcmd_uenv=run uenv_load; if test $uenv_loaded -eq 1; then run uenv_import; fi bootcmd_usb=run usb_init; run set_bootargs_usb; run usb_boot; bootdelay=10 console=ttyS0,115200 device=0:1 ethact=egiga0 ethaddr=b6:d0:5e:0f:a1:17 led_error=orange blinking led_exit=green off led_init=green blinking load_dtb=ext2load usb 0:1 0x1c00000 /boot/dts/kirkwood-sheevaplug.dtb load_uimage=ext2load usb 0:1 0x800000 /boot/uImage mainlineLinux=yes mtdids=nand0=orion_nand partition=nand0,2 rootdelay=10 rootfstype=ext2 set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts stderr=serial stdin=serial stdout=serial uenv_import=echo importing envs ...; env import -t 0x810000 uenv_load=usb start; ide reset; setenv uenv_loaded 0; for devtype in usb ide; do for disknum in 0; do run uenv_read_disk; done; done uenv_read=echo loading envs from $devtype $disknum ...; if load $devtype $disknum:1 0x810000 /boot/uEnv.txt; then setenv uenv_loaded 1; fi uenv_read_disk=if $devtype part $disknum; then run uenv_read; fi usb_boot=run load_dtb; run load_uimage; bootm 0x800000 - 0x1c00000 usb_init=usb start usb_load_uimage=ext2load usb $device 0x800000 /boot/uImage usb_load_uinitrd=ext2load usb $device 0x1100000 /boot/uInitrd usb_root=/dev/sda1 Environment size: 1437/131068 bytes
Re: Who can compile an u-boot bin for me? January 14, 2016 07:49AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Who can compile an u-boot bin for me? January 14, 2016 07:54AM |
Registered: 8 years ago Posts: 49 |
Re: Who can compile an u-boot bin for me? January 14, 2016 12:17PM |
Admin Registered: 13 years ago Posts: 18,997 |
setenv rootfstype ext3
boot
Re: Who can compile an u-boot bin for me? January 15, 2016 09:37AM |
Registered: 8 years ago Posts: 49 |
# MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
dev: size erasesize name mtd0: 00100000 00004000 "u-boot" mtd1: 00400000 00004000 "uImage" mtd2: 01b00000 00004000 "rootfs"
Re: Who can compile an u-boot bin for me? January 15, 2016 01:01PM |
Admin Registered: 13 years ago Posts: 18,997 |
setenv rootfstype ext3 setenv mtdparts 'mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs)'
boot
cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd0 0xc0000 0x20000 0x20000
cat /proc/cmdline cat /proc/mtd
Re: Who can compile an u-boot bin for me? January 19, 2016 02:08AM |
Registered: 8 years ago Posts: 49 |
root@debian:/tools# ./flash_erase /dev/mtd0 0 4 Erase Total 4 Units Performing Flash Erase of length 16384 at offset 0xc000 done root@debian:/tools# ./nandwrite /dev/mtd0 uboot.2015.10-tld-1.sheevaplug.mtd0.kwb Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x4000 Writing data to block 2 at offset 0x8000 Writing data to block 3 at offset 0xc000 Writing data to block 4 at offset 0x10000 Writing data to block 5 at offset 0x14000 Writing data to block 6 at offset 0x18000 Writing data to block 7 at offset 0x1c000 Writing data to block 8 at offset 0x20000 Writing data to block 9 at offset 0x24000 Writing data to block 10 at offset 0x28000 Writing data to block 11 at offset 0x2c000 Writing data to block 12 at offset 0x30000 Writing data to block 13 at offset 0x34000 Writing data to block 14 at offset 0x38000 Writing data to block 15 at offset 0x3c000 Writing data to block 16 at offset 0x40000 Writing data to block 17 at offset 0x44000 Writing data to block 18 at offset 0x48000 Writing data to block 19 at offset 0x4c000 Writing data to block 20 at offset 0x50000 Writing data to block 21 at offset 0x54000 Writing data to block 22 at offset 0x58000 Writing data to block 23 at offset 0x5c000 Writing data to block 24 at offset 0x60000 Writing data to block 25 at offset 0x64000 Writing data to block 26 at offset 0x68000 Writing data to block 27 at offset 0x6c000 Writing data to block 28 at offset 0x70000 Writing data to block 29 at offset 0x74000 Writing data to block 30 at offset 0x78000 Writing data to block 31 at offset 0x7c000 root@debian:/tools# ./flash_erase /dev/mtd0 0xc0000 1 Erase Total 1 Units Performing Flash Erase of length 16384 at offset 0xc0000 done root@debian:/tools# ./nandwrite -s 786432 /dev/mtd0 uboot.environment Writing data to block 48 at offset 0xc0000 Writing data to block 49 at offset 0xc4000 Writing data to block 50 at offset 0xc8000 Writing data to block 51 at offset 0xcc000 Writing data to block 52 at offset 0xd0000 Writing data to block 53 at offset 0xd4000 Writing data to block 54 at offset 0xd8000 Writing data to block 55 at offset 0xdc000 root@debian:/tools# fw_setenv arcNumber 2097 root@debian:/tools# fw_setenv machid root@debian:/tools# fw_setenv mtdparts 'mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs)' root@debian:/tools# 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 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 1 || fatload 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 arcNumber=2097 mtdparts=mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs)
Re: Who can compile an u-boot bin for me? January 19, 2016 04:18AM |
Admin Registered: 13 years ago Posts: 18,997 |
setenv rootfstype ext3 setenv mtdparts 'mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs)'
boot
cat /etc/fw_env.config
cat /proc/cmdline cat /proc/mtd
Re: Who can compile an u-boot bin for me? January 19, 2016 07:18AM |
Registered: 8 years ago Posts: 49 |
linux-k858:/home/aos/kwboot-tool # ./kwboot -t /dev/ttyUSB0 -b uboot.2015.10-tld-1.sheevaplug.mtd0.kwb -p Sending boot message. Please reboot the target...\ Sending boot image... 0 % [......................................................................] 1 % [......................................................................] 3 % [......................................................................] 5 % [......................................................................] 6 % [......................................................................] 8 % [......................................................................] 10 % [......................................................................] 11 % [......................................................................] 13 % [......................................................................] 15 % [......................................................................] 17 % [......................................................................] 18 % [......................................................................] 20 % [......................................................................] 22 % [......................................................................] 23 % [......................................................................] 25 % [......................................................................] 27 % [......................................................................] 29 % [......................................................................] 30 % [......................................................................] 32 % [......................................................................] 34 % [......................................................................] 35 % [......................................................................] 37 % [......................................................................] 39 % [......................................................................] 41 % [......................................................................] 42 % [......................................................................] 44 % [......................................................................] 46 % [......................................................................] 47 % [......................................................................] 49 % [......................................................................] 51 % [......................................................................] 53 % [......................................................................] 54 % [......................................................................] 56 % [......................................................................] 58 % [......................................................................] 59 % [......................................................................] 61 % [......................................................................] 63 % [......................................................................] 64 % [......................................................................] 66 % [......................................................................] 68 % [......................................................................] 70 % [......................................................................] 71 % [......................................................................] 73 % [......................................................................] 75 % [......................................................................] 76 % [......................................................................] 78 % [......................................................................] 80 % [......................................................................] 82 % [......................................................................] 83 % [......................................................................] 85 % [......................................................................] 87 % [......................................................................] 88 % [......................................................................] 90 % [......................................................................] 92 % [......................................................................] 94 % [......................................................................] 95 % [......................................................................] 97 % [......................................................................] 99 % [....................................] [Type Ctrl-\ + c to quit] U-Boot 2015.10-tld-1 (Nov 17 2015 - 23:01:16 -0800) Marvell-Sheevaplug SoC: Kirkwood 88F6281_A1 DRAM: 512 MiB (ECC not enabled) WARNING: Caches not enabled NAND: 32 MiB In: serial Out: serial Err: serial Net: egiga0 Error: egiga0 address not set. PHY reset timed out 88E1116 Initialized on egiga0 Hit any key to stop autoboot: 0 Sheevaplug> setenv mtdparts 'mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs)' Sheevaplug> boot starting 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 ** File not found /rescueme ** ** Unrecognized filesystem type ** incorrect device type in data Partition data not found! 1 bytes read in 112 ms (0 Bytes/s) Found bootable drive on usb 0:1 2756040 bytes read in 194 ms (13.5 MiB/s) 6032465 bytes read in 409 ms (14.1 MiB/s) ## Booting kernel from Legacy Image at 00800000 ... Image Name: Linux-3.16.0-kirkwood-tld-2 Created: 2014-09-01 23:18:31 UTC Image Type: ARM Linux Kernel Image (uncompressed) Data Size: 2755976 Bytes = 2.6 MiB Load Address: 00008000 Entry Point: 00008000 Verifying Checksum ... OK ## Loading init Ramdisk from Legacy Image at 01100000 ... Image Name: initramfs-3.16.0-kirkwood-tld-2 Created: 2014-09-01 23:18:48 UTC Image Type: ARM Linux RAMDisk Image (gzip compressed) Data Size: 6032401 Bytes = 5.8 MiB Load Address: 00000000 Entry Point: 00000000 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.0-kirkwood-tld-2 (root@tldDebian) (gcc version 4.6.3 (Debian 4.6.3-14) ) #2 PREEMPT Sun Aug 31 18:56:01 PDT 2014 [ 0.000000] CPU: Feroceon 88FR131 [56251311] revision 1 (ARMv5TE), cr=0005397f [ 0.000000] CPU: VIVT data cache, VIVT instruction cache [ 0.000000] Machine: Marvell SheevaPlug Reference Board [ 0.000000] Memory policy: Data cache writeback [ 0.000000] Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048 [ 0.000000] Kernel command line: console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs) [ 0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes) [ 0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes) [ 0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes) [ 0.000000] Memory: 505588K/524288K available (5441K kernel code, 397K rwdata, 1840K rodata, 257K init, 299K bss, 18700K reserved) [ 0.000000] Virtual kernel memory layout: [ 0.000000] vector : 0xffff0000 - 0xffff1000 ( 4 kB) [ 0.000000] fixmap : 0xffc00000 - 0xffe00000 (2048 kB) [ 0.000000] vmalloc : 0xe0800000 - 0xff000000 ( 488 MB) [ 0.000000] lowmem : 0xc0000000 - 0xe0000000 ( 512 MB) [ 0.000000] modules : 0xbf000000 - 0xc0000000 ( 16 MB) [ 0.000000] .text : 0xc0008000 - 0xc07248b0 (7283 kB) [ 0.000000] .init : 0xc0725000 - 0xc0765444 ( 258 kB) [ 0.000000] .data : 0xc0766000 - 0xc07c975c ( 398 kB) [ 0.000000] .bss : 0xc07c975c - 0xc08144dc ( 300 kB) [ 0.000000] Preemptible hierarchical RCU implementation. [ 0.000000] NR_IRQS:114 [ 0.000011] sched_clock: 32 bits at 200MHz, resolution 5ns, wraps every 21474836475ns [ 6.971542] Console: colour dummy device 80x30 [ 6.971569] Calibrating delay loop... 1191.11 BogoMIPS (lpj=5955584) [ 7.061330] pid_max: default: 32768 minimum: 301 [ 7.061451] Security Framework initialized [ 7.061519] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 7.061538] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes) [ 7.062392] Initializing cgroup subsys devices [ 7.062454] Initializing cgroup subsys freezer [ 7.062481] Initializing cgroup subsys net_cls [ 7.062528] Initializing cgroup subsys blkio [ 7.062623] CPU: Testing write buffer coherency: ok [ 7.063071] Setting up static identity map for 0x5273f0 - 0x527448 [ 7.065374] devtmpfs: initialized [ 7.069261] prandom: seed boundary self test passed [ 7.073323] prandom: 100 self tests passed [ 7.073353] pinctrl core: initialized pinctrl subsystem [ 7.073858] regulator-dummy: no parameters [ 7.074320] NET: Registered protocol family 16 [ 7.074767] DMA: preallocated 256 KiB pool for atomic coherent allocations [ 7.075985] cpuidle: using governor ladder [ 7.076011] cpuidle: using governor menu [ 7.076149] Kirkwood: MV88F6281-A1, TCLK=200000000. [ 7.076172] Feroceon L2: Enabling L2 [ 7.076211] Feroceon L2: Cache support initialised. [ 7.112851] vgaarb: loaded [ 7.113207] usbcore: registered new interface driver usbfs [ 7.113284] usbcore: registered new interface driver hub [ 7.113406] usbcore: registered new device driver usb [ 7.114380] Switched to clocksource orion_clocksource [ 7.152858] NET: Registered protocol family 2 [ 7.153817] TCP established hash table entries: 4096 (order: 2, 16384 bytes) [ 7.153874] TCP bind hash table entries: 4096 (order: 2, 16384 bytes) [ 7.153926] TCP: Hash tables configured (established 4096 bind 4096) [ 7.153993] TCP: reno registered [ 7.154007] UDP hash table entries: 256 (order: 0, 4096 bytes) [ 7.154029] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes) [ 7.154235] NET: Registered protocol family 1 [ 7.154606] RPC: Registered named UNIX socket transport module. [ 7.154618] RPC: Registered udp transport module. [ 7.154625] RPC: Registered tcp transport module. [ 7.154632] RPC: Registered tcp NFSv4.1 backchannel transport module. [ 7.154930] Unpacking initramfs... [ 7.654812] Freeing initrd memory: 5884K (c1101000 - c16c0000) [ 7.654945] NetWinder Floating Point Emulator V0.97 (double precision) [ 7.656082] futex hash table entries: 256 (order: -1, 3072 bytes) [ 7.656151] audit: initializing netlink subsys (disabled) [ 7.656203] audit: type=2000 audit(0.680:1): initialized [ 7.657002] zbud: loaded [ 7.657266] VFS: Disk quotas dquot_6.5.2 [ 7.657317] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes) [ 7.657875] NFS: Registering the id_resolver key type [ 7.657938] Key type id_resolver registered [ 7.657947] Key type id_legacy registered [ 7.657972] nfs4filelayout_init: NFSv4 File Layout Driver Registering... [ 7.657987] Installing knfsd (copyright (C) 1996 okir@monad.swb.de). [ 7.658152] jffs2: version 2.2. (NAND) (SUMMARY) © 2001-2006 Red Hat, Inc. [ 7.658458] msgmni has been set to 998 [ 7.658615] Key type big_key registered [ 7.660963] alg: No test for stdrng (krng) [ 7.661080] bounce: pool size: 64 pages [ 7.661145] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 252) [ 7.661164] io scheduler noop registered [ 7.661178] io scheduler deadline registered [ 7.661341] io scheduler cfq registered (default) [ 7.661765] mv_xor mv_xor.0: Marvell shared XOR driver [ 7.694457] mv_xor mv_xor.0: Marvell XOR: ( xor cpy ) [ 7.734445] mv_xor mv_xor.0: Marvell XOR: ( xor cpy ) [ 7.734620] mv_xor mv_xor.1: Marvell shared XOR driver [ 7.774445] mv_xor mv_xor.1: Marvell XOR: ( xor cpy ) [ 7.814444] mv_xor mv_xor.1: Marvell XOR: ( xor cpy ) [ 7.814874] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled [ 7.815870] console [ttyS0] disabled [ 7.835964] serial8250.0: ttyS0 at MMIO 0xf1012000 (irq = 33, base_baud = 12500000) is a 16550A [ 8.384254] console [ttyS0] enabled [ 8.388995] nand: device found, Manufacturer ID: 0xec, Chip ID: 0x75 [ 8.395405] nand: Samsung NAND 32MiB 3,3V 8-bit [ 8.399956] nand: 32MiB, SLC, page size: 512, OOB size: 16 [ 8.405487] Scanning device for bad blocks [ 8.757590] 3 cmdlinepart partitions found on MTD device orion_nand [ 8.763884] Creating 3 MTD partitions on "orion_nand": [ 8.769068] 0x000000000000-0x000000100000 : "u-boot" [ 8.774472] 0x000000100000-0x000000500000 : "uImage" [ 8.779854] 0x000000500000-0x000002000000 : "rootfs" [ 8.786177] libphy: Fixed MDIO Bus: probed [ 8.808348] libphy: orion_mdio_bus: probed [ 8.812584] mv643xx_eth: MV-643xx 10/100/1000 ethernet driver version 1.4 [ 8.819663] libphy: PHY orion-mdio-mii:00 not found [ 8.824639] platform mv643xx_eth_port.0: Driver mv643xx_eth_port requests probe deferral [ 8.832975] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver [ 8.839585] ehci-pci: EHCI PCI platform driver [ 8.844125] ehci-orion: EHCI orion driver [ 8.848269] orion-ehci orion-ehci.0: EHCI Host Controller [ 8.853715] orion-ehci orion-ehci.0: new USB bus registered, assigned bus number 1 [ 8.861483] orion-ehci orion-ehci.0: irq 19, io mem 0xf1050000 [ 8.884417] orion-ehci orion-ehci.0: USB 2.0 started, EHCI 1.00 [ 8.890551] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002 [ 8.897395] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1 [ 8.904669] usb usb1: Product: EHCI Host Controller [ 8.909571] usb usb1: Manufacturer: Linux 3.16.0-kirkwood-tld-2 ehci_hcd [ 8.916321] usb usb1: SerialNumber: orion-ehci.0 [ 8.921685] hub 1-0:1.0: USB hub found [ 8.925535] hub 1-0:1.0: 1 port detected [ 8.930335] mousedev: PS/2 mouse device common for all mice [ 8.936470] rtc-mv rtc-mv: rtc core: registered rtc-mv as rtc0 [ 8.942490] i2c /dev entries driver [ 8.946964] hidraw: raw HID events driver (C) Jiri Kosina [ 8.952738] drop_monitor: Initializing network drop monitor service [ 8.959323] TCP: cubic registered [ 8.962666] NET: Registered protocol family 17 [ 8.967286] Key type dns_resolver registered [ 8.972282] registered taskstats version 1 [ 8.977225] libphy: PHY orion-mdio-mii:00 not found [ 8.982153] platform mv643xx_eth_port.0: Driver mv643xx_eth_port requests probe deferral [ 8.990651] rtc-mv rtc-mv: setting system clock to 2016-01-19 13:14:25 UTC (1453209265) [ 9.000611] Freeing unused kernel memory: 256K (c0725000 - c0765000) Loading, please wait... [ 9.075274] udevd[57]: starting version 175 [ 9.228269] mvsdio mvsdio: no pins associated [ 9.244539] usb 1-1: new high-speed USB device number 2 using orion-ehci [ 9.281010] libphy: PHY orion-mdio-mii:00 not found [ 9.289514] platform mv643xx_eth_port.0: Driver mv643xx_eth_port requests probe deferral [ 9.406762] usb 1-1: New USB device found, idVendor=05e3, idProduct=0608 [ 9.413519] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0 [ 9.422743] usb 1-1: Product: USB2.0 Hub [ 9.428185] hub 1-1:1.0: USB hub found [ 9.432247] hub 1-1:1.0: 4 ports detected [ 9.438709] libphy: PHY orion-mdio-mii:00 not found [ 9.443647] platform mv643xx_eth_port.0: Driver mv643xx_eth_port requests probe deferral [ 9.465210] libphy: PHY orion-mdio-mii:00 not found [ 9.470161] platform mv643xx_eth_port.0: Driver mv643xx_eth_port requests probe deferral [ 9.714753] usb 1-1.2: new high-speed USB device number 3 using orion-ehci [ 9.825624] usb 1-1.2: New USB device found, idVendor=125f, idProduct=de7a [ 9.832544] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 9.839921] usb 1-1.2: Product: ADATA USB Flash Drive [ 9.845017] usb 1-1.2: Manufacturer: ADATA [ 9.849134] usb 1-1.2: SerialNumber: 14B1311102300064 [ 9.858085] libphy: PHY orion-mdio-mii:00 not found [ 9.863015] platform mv643xx_eth_port.0: Driver mv643xx_eth_port requests probe deferral [ 9.889834] SCSI subsystem initialized [ 9.898157] usb-storage 1-1.2:1.0: USB Mass Storage device detected [ 9.904890] scsi0 : usb-storage 1-1.2:1.0 [ 9.909763] libphy: PHY orion-mdio-mii:00 not found [ 9.915705] usbcore: registered new interface driver usb-storage [ 9.922968] platform mv643xx_eth_port.0: Driver mv643xx_eth_port requests probe deferral [ 9.933021] usbcore: registered new interface driver uas [ 10.905353] scsi 0:0:0:0: Direct-Access ADATA USB Flash Drive 1.00 PQ: 0 ANSI: 6 [ 10.942943] libphy: PHY orion-mdio-mii:00 not found [ 10.948680] sd 0:0:0:0: [sda] 123480064 512-byte logical blocks: (63.2 GB/58.8 GiB) [ 10.957195] platform mv643xx_eth_port.0: Driver mv643xx_eth_port requests probe deferral [ 10.965908] sd 0:0:0:0: [sda] Write Protect is off [ 10.971149] sd 0:0:0:0: [sda] Write cache: disabled, read cache: disabled, doesn't support DPO or FUA [ 10.985650] sda: sda1 [ 10.991025] sd 0:0:0:0: [sda] Attached SCSI removable disk [ 11.007860] sd 0:0:0:0: Attached scsi generic sg0 type 0 Begin: Loading essential drivers ... done. Begin: Running /scripts/init-premount ... done. Begin: Mounting root file system ... Begin: Running /scripts/local-top ... done. Begin: Running /scripts/local-premount ... done. Begin: Running /scripts/local-bottom ... done. done. Begin: Running /scripts/init-bottom ... done. INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [....] Starting the hotplug events dispatcher: udevd[ 20.696310] udevd[235]: starting version 175 . ok [ ok ] Synthesizing the initial hotplug events...done. [....] Waiting for /dev to be fully populated...[ 21.160786] alg: hash: Test 3 failed for mv-sha1 [ 21.165526] 00000000: 10 bf d7 00 71 0b bb 83 3a 26 d0 97 13 05 99 f5 [ 21.171992] 00000010: 3a 92 53 3c [ 21.223345] alg: hash: Test 1 failed for mv-hmac-sha1 [ 21.232216] 00000000: 0c aa 9f d5 37 c3 79 3a 91 d9 21 5f 42 2b 2c 24 [ 21.244512] 00000010: b7 c3 16 0c [ 21.252458] libphy: PHY orion-mdio-mii:00 not found [ 21.261127] platform mv643xx_eth_port.0: Driver mv643xx_eth_port requests probe deferral done. [ ok ] Activating swap...done. [....] Checking root file system...[ 22.297807] random: nonblocking pool is initialized fsck from util-linux 2.20.1 rootfs: clean, 13252/3859072 files, 377930/15435004 blocks done. [ ok ] Loading kernel modules...done. [ ok ] Cleaning up temporary files... /lib/init/rw. [ ok ] Activating lvm and md swap...done. [....] Checking file systems...fsck from util-linux 2.20.1 done. [ ok ] Mounting local filesystems...done. [ ok ] Activating swapfile swap...done. [ ok ] Cleaning up temporary files.... [ ok ] Setting kernel variables ...done. [....] Configuring network interfaces...[ 26.855982] NET: Registered protocol family 10 Internet Systems Consortium DHCP Client 4.2.2 Copyright 2004-2011 Internet Systems Consortium. All rights reserved. For info, please visit https://www.isc.org/software/dhcp/ Cannot find device "eth0" Bind socket to interface: No such device Failed to bring up eth0. done. [ ok ] Starting rpcbind daemon.... [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Cleaning up temporary files.... INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [....] Starting busybox' syslogd implementation : syslogdStarting /sbin/syslogd... 1605 (syslogd) . ok [....] Starting busybox' klogd implementation : klogdStarting /sbin/klogd... [ ok ] Starting system message bus: dbus. [ ok ] Starting NFS common utilities: statd idmapd. [ ok ] Starting NTP server: ntpd. [ ok ] Starting rpcbind daemon...[....] Already running.. [warn] Not starting NFS kernel daemon: no exports. ... (warning). 1603 (klogd) . ok [ ok ] Starting OpenBSD Secure Shell server: sshd. [....] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemonTimeout reached while wating for return value Could not receive return value from daemon process. (warning). Debian GNU/Linux 7 debian ttyS0 debian login: root Password: Last login: Mon Jan 18 23:31:33 PST 2016 on ttyS0 Linux debian 3.16.0-kirkwood-tld-2 #2 PREEMPT Sun Aug 31 18:56:01 PDT 2014 armv5tel The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. 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:~# cat /proc/cmdline console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs) root@debian:~# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00004000 "u-boot" mtd1: 00400000 00004000 "uImage" mtd2: 01b00000 00004000 "rootfs" root@debian:~#
Re: Who can compile an u-boot bin for me? January 19, 2016 02:20PM |
Admin Registered: 13 years ago Posts: 18,997 |
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:~# cat /proc/cmdline console=ttyS0,115200 root=/dev/sda1 rootdelay=10 rootfstype=ext2 mtdparts=orion_nand:1M(u-boot),4M(uImage),-(rootfs) root@debian:~# cat /proc/mtd dev: size erasesize name mtd0: 00100000 00004000 "u-boot"
cat /proc/mtd dev: size erasesize name mtd0: 00100000 00020000 "u-boot"
Re: Who can compile an u-boot bin for me? January 19, 2016 02:49PM |
Registered: 8 years ago Posts: 49 |
Re: Who can compile an u-boot bin for me? January 19, 2016 11:52PM |
Admin Registered: 13 years ago Posts: 18,997 |
flinfo
Re: Who can compile an u-boot bin for me? January 20, 2016 01:36AM |
Registered: 8 years ago Posts: 49 |
Re: Who can compile an u-boot bin for me? January 20, 2016 04:55AM |
Admin Registered: 13 years ago Posts: 18,997 |
Re: Who can compile an u-boot bin for me? January 20, 2016 05:04AM |
Registered: 8 years ago Posts: 49 |
Re: Who can compile an u-boot bin for me? January 20, 2016 05:22AM |
Admin Registered: 13 years ago Posts: 18,997 |
flash_erase /dev/mtd0 0 32 nandwrite /dev/mtd0 uboot.2015-tld-1.sheevaplug.mtd0.kwb flash_erase /dev/mtd0 0xc0000 8 nandwrite -s 786432 /dev/mtd0 uboot.2014.07-tld-3.environment.img
Re: Who can compile an u-boot bin for me? January 20, 2016 06:00AM |
Registered: 8 years ago Posts: 49 |
root@debian:/tools# ./flash_erase /dev/mtd0 0 32 Erase Total 32 Units Performing Flash Erase of length 16384 at offset 0x7c000 done root@debian:/tools# ./nandwrite /dev/mtd0 uboot.2015.10-tld-1.sheevaplug.mtd0.kwb Writing data to block 0 at offset 0x0 Writing data to block 1 at offset 0x4000 Writing data to block 2 at offset 0x8000 Writing data to block 3 at offset 0xc000 Writing data to block 4 at offset 0x10000 Writing data to block 5 at offset 0x14000 Writing data to block 6 at offset 0x18000 Writing data to block 7 at offset 0x1c000 Writing data to block 8 at offset 0x20000 Writing data to block 9 at offset 0x24000 Writing data to block 10 at offset 0x28000 Writing data to block 11 at offset 0x2c000 Writing data to block 12 at offset 0x30000 Writing data to block 13 at offset 0x34000 Writing data to block 14 at offset 0x38000 Writing data to block 15 at offset 0x3c000 Writing data to block 16 at offset 0x40000 Writing data to block 17 at offset 0x44000 Writing data to block 18 at offset 0x48000 Writing data to block 19 at offset 0x4c000 Writing data to block 20 at offset 0x50000 Writing data to block 21 at offset 0x54000 Writing data to block 22 at offset 0x58000 Writing data to block 23 at offset 0x5c000 Writing data to block 24 at offset 0x60000 Writing data to block 25 at offset 0x64000 Writing data to block 26 at offset 0x68000 Writing data to block 27 at offset 0x6c000 Writing data to block 28 at offset 0x70000 Writing data to block 29 at offset 0x74000 Writing data to block 30 at offset 0x78000 Writing data to block 31 at offset 0x7c000 root@debian:/tools# ./flash_erase /dev/mtd0 0xc0000 8 Erase Total 8 Units Performing Flash Erase of length 16384 at offset 0xdc000 done root@debian:/tools# ./nandwrite -s 786432 /dev/mtd0 uboot.2014.07-tld-3.environment.img Writing data to block 48 at offset 0xc0000 Writing data to block 49 at offset 0xc4000 Writing data to block 50 at offset 0xc8000 Writing data to block 51 at offset 0xcc000 Writing data to block 52 at offset 0xd0000 Writing data to block 53 at offset 0xd4000 Writing data to block 54 at offset 0xd8000 Writing data to block 55 at offset 0xdc000 root@debian:/tools# fw_setenv arcNumber 2097 root@debian:/tools# fw_setenv machid root@debian:/tools# 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 1 || fatload 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 arcNumber=2097