I use tftpd to boot into usb Debian rootfs. Then i flash the new U-boot. Then i flash the new kernel ,then reboot U-Boot SPL 2013.10-tld-4 (Sep 07 2014 - 14:10:12) Boot device: NAND Attempting to set PLLA to 850 MHz ... plla_ctrl0 : 0000020a plla_ctrl1 : 00330000 plla_ctrl2 : 0065008b plla_ctrl3 : 000000f1 PLLA Set U-Boot 2015.10-tld-1 (Nov 21 2015 - 01:17:59 -0800) OXby ming - uBoot
I interrupt it.But it does not have this command 'boot' Reading upgrade flag from NAND address 0x01ec0000 : 0 Hit any key to stop autoboot: 0 #boot Unknown command 'boot' - try 'help' # What other command can be replaced it #help ? - alias for 'help' base - print or set address offset bdinfo - print Board Info structure bootm - boby ming - uBoot
# #setenv bootdelay 8 #saveenv Saving Environment to NAND... Erasing at 0x1a0000 -- 13107200% complete. OK 8192 bytes written: OK Erasing at 0x1c0000 -- 13107200% complete. OK 8192 bytes written: OK Writing to Nand... done #reset then root@PogoPlug:/# /root/tools/fw_printenv bootcmd=run lightled root_sata boot_sata || run root_nand boot_nand || run extinguishled baudrate=115by ming - uBoot
#version U-Boot 1.1.2 (Sep 23 2013 - 00:30:38) #bdinfo arch_number = 0x00000480 env_t = 0x00000000 boot_params = 0x60000100 DRAM bank = 0x00000000 -> start = 0x60000000 -> size = 0x08000000 ethaddr = 00:30:E0:00:00:01 ip_addr = 192.168.1.200 baudrate = 115200 bps #? ? - alias for 'help' base - print or set address offset bdinfoby ming - uBoot
I have always used the serial console.telnet can not see # telnet can only see root@PogoPlug:/#by ming - uBoot
When i type any key on the keyboard, e.g. <Enter>, NAS7820 BootStrap v0.1 PLX Technology, Inc. 2010. All Rights Reserved Copyright, lintel 2013.09 CPU Clock set to 700MHz ... Testing Stage2 Memory...OK! NAND Flash Info: Vendor ID:0x000000AD Product ID:0x000000F1 Type ID:0x00000000 Reading Nand Flash, Image 0 Hdr len: 0x00021D30 Hdr CRC: 0x3A0B1834 OK U-Bootby ming - uBoot
root@PogoPlug:~/tools# ./fw_printenv bootcmd=run lightled root_sata boot_sata || run root_nand boot_nand || run extinguishled bootdelay=1 baudrate=115200 ethaddr=00:30:e0:00:00:01 ipaddr=192.168.1.200 serverip=192.168.1.100 autoload=n netmask=255.255.0.0 bootfile="uImage" load_nand=nboot 0x60500000 0 0x200000 load_nand2=nboot 0x60500000 0 0x440000 lightled=ledfail 1 extby ming - uBoot
There is no countdown Hit any key to stop autoboot: 0by ming - uBoot
I tried many times,but all failedby ming - uBoot
this not u-boot prompt ? root@PogoPlug:/# reboot root@PogoPlug:/# [107848.580000] br-lan: port 1(eth0) entering forwarding state [107848.590000] device eth0 left promiscuous mode [107848.590000] br-lan: port 1(eth0) entering disabled state [107848.600000] br-lan: mixed no checksumming and other settings. [107851.650000] EXT4-fs (sda): re-mounted. Opts: (null) [107853.740000] sd 0:0:0:0:by ming - uBoot
#setenv mtdparts 'mtdparts=41000000.nand:14m(boot),-(data)' #boot Unknown command 'boot' - try 'help' #help ? - alias for 'help' base - print or set address offset bdinfo - print Board Info structure bootm - boot application image from memory bootp - boot image via network using BootP/TFTP protocol cmp - memory compare cp -by ming - uBoot
I have connected the box with the serial console, and how can I adjust it or can you give me a keyword so that I can search for related topics?by ming - uBoot
My mtd0 is too small,How can i adjust it root@PogoPlug:~# cat /proc/mtd dev: size erasesize name mtd0: 00040000 00020000 "stage1" mtd1: 00160000 00020000 "u-boot" mtd2: 00040000 00020000 "u-boot-env" mtd3: 02000000 00020000 "boot" mtd4: 00020000 00020000 "factory" mtd5: 00a00000 00020000 "kernel" mtd6: 07200000 00020000by ming - uBoot
find: mkimage: No such file or directoryby ming - uBoot
root@PogoPlug:/media/sdb1/boot# mkimage -A arm -O linux -C none -T kernel -a 0x 60008000 -e 0x60008000 -n 'Linux-3.3.17.0-oxnas-tld-1' -d zImage-3.17.0-oxnas-tl d-1.fdt uImage sync /bin/ash: mkimage: not foundby ming - uBoot
How to set up to boot USB rootfs first.Is there any blog that you can learn from?by ming - uBoot
Should i follow these steps? - set up to boot USB rootfs first, - adjust mtdparts to be same as above - boot this USB rootfs successfully - verify that the mtds definition are correct. - flash new u-boot and its default envs images.by ming - uBoot
root@PogoPlug:~# cat /etc/fw_env.config # MTD device name Device offset Env. size Flash sector size Number of sectors /dev/mtd2 0x0 0x2000 0x40000 root@PogoPlug:~# cat /proc/mtd dev: size erasesize name mtd0: 00040000 00020000 "stage1" mtd1: 00160000 00020000 "u-boot" mtd2: 00040000 00020000 "u-boot-env" mtd3: 020by ming - uBoot
bodhi Wrote: ------------------------------------------------------- > ming, > > hahibie has a good point, if the uboot envs are c > urrently set up to boot Openwrt, you need to modif > y them to boot USB. Please post the current uboot > envs if you have installed new uboot. root@PogoPlug:/# fdisk -l You must set cylinders. You can do this from the extra functionsby ming - uBoot
habibie Wrote: ------------------------------------------------------- > ming Wrote: > -------------------------------------------------- > ----- > > Now it's running OpenWRT > > > I assume you device boots off OpenWRT from the int > ernal storage, right? Yes.My English is not very good.Has been using google translationby ming - uBoot
I read this: http://forum.doozan.com/read.php?2,16044 ,to make a USB rootfs.but i do not understand set_bootargs_usb=setenv bootargs console=$console root=$usb_root rootdelay=$rootdelay rootfstype=$rootfstype $mtdparts rootfstype=ext2 I format the U disk using the 'mkfs.ext3 ' command. and extract tar -xjf Debian-3.17.0-oxnas-tld-1-rootfs-bodhi.tar.bz2 then i get # mv /home/aby ming - uBoot
bodhi Wrote: ------------------------------------------------------- > ming Wrote: > -------------------------------------------------- > ----- > > cat /proc/mtd > > > > root@PogoPlug:~# cat /proc/mtd > > dev: size erasesize name > > mtd0: 00040000 00020000 "stage1" > > mtd1: 00160000 00020000 "u-boot" > > mtby ming - uBoot