Andes Workshop

It is currently Fri Jun 23, 2017 10:55 pm

All times are UTC + 8 hours [ DST ]




Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: Burn Linux Kernel image into flash in Andes EVB board
PostPosted: Wed Jul 02, 2014 3:09 pm 
Offline

Joined: Wed Apr 13, 2011 7:44 pm
Posts: 23
Using boot bode to burn Linux Kernel image into flash:
1. Insert FAT32 format SD card with Linux Kernel image file(bpi321).
2. Boot up EVB board.
3. Press 'SW4' GPIO button to get in "Setup & Diagnosis" command menu.
4. Key in "55" in terminal to get in CLI (Command List Interface).
5. Load kernel image from SD card into memory:
Code:
CLI> sdload bpi321 0x02000000
6. Burn kernel data to flash:
Code:
CLI> burn 0x02000000 0x80800000 0xa00000
Code:
Note:
If you meet "Flash_ChipErase - Erase suspend." condition,
please unlock the flash by using:
a. AndeSight "Flash Burner" tool.
b. Add "--unlock" option in "IntelJ3" tool.
Attachment:
burnkernel.jpg
burnkernel.jpg [ 275.01 KiB | Viewed 2047 times ]

Boot Linux Kernel in flash:
1. Boot up EVB board.
2. Press 'SW4' GPIO button to get in "Setup & Diagnosis" command menu.
3. Key in "55" in terminal to get in CLI (Command List Interface).
4. Go to address "0x80800000" and run Linux Kernel in flash.
Code:
CLI> go 0x80800000
Attachment:
bootmenu.jpg
bootmenu.jpg [ 85.48 KiB | Viewed 2047 times ]


Auto boot into Linux when boot up EVB board:
Boot code of EVB board can check if there is "sdbatch.txt" file in SD card.
If it exists, boot code will automatically execute the commands in the file.
1. Create a file named "sdbatch.txt" in SD card with following lines.
Code:
go 0x80800000
end
2. Insert the SD card, and boot up EVB board.
It will automatically boot into Linux with the kernel image in flash.
Attachment:
bootauto.jpg
bootauto.jpg [ 74.36 KiB | Viewed 2047 times ]


=================================================================================
Using AndeSight + AICE to burn Linux Kernel image into flash:
NOTE: The burnning speed is MUCH slower than using boot code.
Attachment:
burnAS.jpg
burnAS.jpg [ 82.77 KiB | Viewed 2012 times ]

In AndeSight "Flash programming Wizard", the "Programming Start Address:" should be 0x00800000.
Address 0x00800000 is mapped to 0x80800000 in boot code "CLI>" environment.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC + 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group