Linux USB burn write uImagekernel1. start the development board, enter u-boot :( if the development board does not have a system, you can use the SD card to start the development board to enter) U-Boot2011.06 (Mar192012-08: 45: 34) forMINI6410CPU: initi6400 @ 667MHzFclk... in Linux, USB-based writing uImage kernel 1. start the development board and enter u-boot: (if the development board does not have a system, you can use the SD card to start the development board.) U-Boot 2011.06 (Mar 19 2012-08:45:34) for MINI6410 CPU: 667 MHzFclk = 667 MHz, Hclk = 133 MHz, Pclk = 66 MHz (ASYNC Mode) Board: MINI6410DRAM: 256 MiBNAND: 512 MiBMMC: samsung sd/MMC: Host controler CH0SD card is SD_VERSION_2SD/MMC size: 3911680 block * 512B = 1910 MBVideo: no Video params found, try bootargs ~~ 640x480x24 31 kHz 59Hz [petworm] video_hw_init: <640,480,640,480> Error: Bad gzipped dataError: no valid bmp or bmp .gz image at 57500000In: serialOut: serialErr: serialNet: dm9000Hit any key to stop autoboot: 3 2. press any key to enter the command line status, run the dnw command, and input the file storage address as a parameter (hexadecimal): MINI6410 # dnw 50008000 Insert a OTG cable into the connector! 3. insert a USB Cable to connect the host to the development board. the following message is displayed on minicom: USB Cable is ConnectedNow, Waiting for DNW to transmit data 4. open another terminal and load the secbulk driver: sudo insmod secbulk 5. create a secbulk driver device node (skip this step after the test): sudo mknod/dev/secbulk0 c 102 0 6. run the dnw program and pass in the uImage file with path as a parameter: sudo. /dnw uImage_a70 # (we select the uImage_a70 file under the current directory) press enter and start the transmission until the transfer is completed. The following message is displayed on the Minicom side: Now, Waiting for DNW to transmit dataDownload Done !! Download Address: 0x50008000, Download Filesize: 0x40de8Checksum is being calculated. Checksum O. K. the host prompts as follows: liwei @ liwei :~ /Desktop/dnw_linux/dnw $ sudo./dnw uImage_a70file name: uImage_a70file size: 3763296 bytesWriting data... 100% 3763306 bytes OK. At this time, the file is transferred and the verification is correct. Then we can use the u-boot command to write the file to the corresponding nandflash address: MINI6410 # nand erase 80000 400000 NAND erase: device 0 offset 0x80000, size 0x400000Erasing at 0x460000 -- 100% complete. OKMINI6410 # nand write 50008000 80000 400000 NAND write: device 0 offset 0x80000, size 0x4000004194304 bytes written: OK 7. adjust S2 to the NAND startup position, restart the development board, and read the kernel from NandFlash to the memory. the running result is as follows: U-Boot 2011.06 (Mar 16 2012-13:58:27) for MINI6410 CPU: @ 667MH ZFclk = 667 MHz, Hclk = 133 MHz, Pclk = 66 MHz (ASYNC Mode) Board: MINI6410DRAM: 256 MiBNAND: 512 MiBMMC: samsung sd/MMC: host controler CH0No SD/MMC card detected! No MMC card for env! Using default environmentVideo: no Video params found, try bootargs ~~ 640x480x24 31 kHz 59Hz [petworm] video_hw_init: <640,480,640,480> No SD/MMC card detected! Video: No MMC card for background image! In: serialOut: serialErr: serialNet: dm9000Hit any key to stop autoboot: 0MINI6410 # nand read 50008000 80000 400000 NAND read: device 0 offset 0x80000, size 0x4000004194304 bytes read: OK 8. start the kernel from the memory: MINI6410 # bootm 50008000 # Booting kernel from Legacy Image at 50008000... image Name: petwormImage Type: ARM Linux Kernel Image (uncompressed) Data Size: 3763232 Bytes = 3.6 MiBLoad Address: 50008000E Ntry Point: 50008040 Verifying Checksum... OKXIP Kernel Image... OKOK Starting kernel... uncompressing Linux... done, booting the kernel. initializing cgroup subsys cpuLinux version 2.6.38-FriendlyARM (root @ Jenkins) (gcc version 4.5.1 (ctng-1.8.1-F1CPU: ARMv6-compatible processor [export fb766] revision 6 (ARMv7), cr = 00c5387fCPU: VEPT nonaliasing data cache, VIPT nonaliasing instruction cacheMachine: MINI6410...... Now, uImage is successfully written using USB cable in Linux! Note: You can use the mkimage command that comes with u-boot to convert zImage to a uImage file. the command is as follows: mkimage-A arm-O linux-T kernel-C none-a 0x50008000-e0x50008040-n "image-name"-d zImage_a70 uImage_a70 this command converts zImage_a70 to uImage_a70, the image name is image-name.
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service