Andes Workshop
http://forum.andestech.com/

Run a program on Linux through SD card (N1337)
http://forum.andestech.com/viewtopic.php?f=16&t=711
Page 1 of 1

Author:  cindy [ Wed Jun 19, 2013 4:04 pm ]
Post subject:  Run a program on Linux through SD card (N1337)

Enter the following command to boot Linux.
55
go 0x80400000


Then compile a program with glibc-v3 toolchain.
(glibc-v3 toolchain can be found in BSP 312 Linux version)

Mount the SD card.
(The SD format is FAT32)

mount -t vfat /dev/cf /mnt/

/ # cd /mnt/
/mnt # ls
hello_linux.adx
/mnt # ./hello_linux.adx
Hello!!!!!2013!!

Page 1 of 1 All times are UTC + 8 hours [ DST ]
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/