Question of Running RTEMS on Altera SOCkit
Adit Sahasrabudhe
asahasra at fb.com
Wed May 25 15:36:44 UTC 2016
Hi Jay,
Yes we have run RTEMS on this kit. If you want a quick and dirty way of booting into your RTEMS application from the SDCARD, do the following:
1. Convert executable image format to binary
a. arm-rtems4.11-objcopy -O binary hello.exe hello.bin
2. Create a text file called hello.txt containing the following commands
a. fatload mmc 0:1 0x00300000 hello.bin;
b. go 0x00300040
3. Convert the text file into a U-boot script
a. mkimage -A arm -T script –d hello.txt hello.scr
4. Copy hello.scr and hello.bin to the FAT partition of the SDCARD
5. Boot into u-boot and set scriptfile environment variable to hello.scr
a. setenv scriptfile loadmyapp.scr
b. saveenv
When you power on, uboot should automatically load and run your code.
Hope this helps,
Adit
On 5/25/16, 8:11 AM, "users on behalf of Jianxium Yan" <users-bounces at rtems.org on behalf of yanjx at jlab.org> wrote:
>Hello,
>
>Has anyone ran RTEMS on Altera Cyclone V SoCkit yet? Now, I built the RTMES program (hello example) and try to run on the SoCkit board with a SD card. But, not sure how to run it. Can anyone tell me step by step how to load the image file?
>Thanks,
>
>Jay
>_______________________________________________
>users mailing list
>users at rtems.org
>https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.rtems.org_mailman_listinfo_users&d=CwICAg&c=5VD0RTtNlTh3ycd41b3MUw&r=NQi5ZDATEqAUQ7YuH-e3LQ&m=Ce2u46ygcXUjlFfWKiFfW_7MSxc9bpHBbcL3zzviPQE&s=lnaDOO3mmi2Tpw3dYfNZy0CcHrBMgQPaboRanbDZbTg&e=
More information about the users
mailing list