Hi Dear Friends, I've used mass storage code from sample codes of KEIL on AT91SAM7x. And it works correctly and shows it as Flash memory in the windows.Then I changed it to apear as CD-ROM in windows.I have changed PDT and block size and added SCSI commands that requires.
Now I want to replace the contents of the disk image into CD one, which is formatted following to ISO966 spec . And there is my problem. I confused about it.In Primary Volume Descriptor should I placed the path table first and then placed the root? And I have problem with the path table itself too.
Can anyone help me about it? Or give me an example or tutorial about ISO?
I have used the Nero too to create ISO file but when it created the ISO File size is about 1 MB although I just put the same README.TXT that are in DISKImg.c and its size is just 94 B. What am I missing?
Also, here is an example for AT91SAM7X
homepage2.nifty.com/.../AT91SAM7EX256_USB_CDROM.zip
- Based upon Keil MDK-ARM v4 example \Keil\ARM\Boards\Atmel\AT91SAM7X-EK\USB\Memory
- Ported to Olimex SAM7-EX256
- Tested on Windows7 (x64/x32), MacOSX 10.9.4, Ubuntu 14.04.1 LTS
This example emulates USB CDROM on AT91SAM7X which has single ReadMe.txt file.
To make up your own CDROM on this firmware, 1) Using ISO Workshop (see above post), drop in your files into an ISO image. 2) Convert the .iso image file into C code file, using SRecord http://srecord.sourceforge.net
> srec_cat DiskImg.iso -binary -o DiskImg.c -C-Array
3) Replace DiskImg.c of this example with yours.
Enjoy!
Tsuneo
Dear Tsuneo, I can not download the sample you uploaded.Could you upload it on another server? Thank you again for your great help to me. I never forget it.
I posted the example to Atmel AT91 forum with a brief implementation summary. www.at91.com/.../p,42763.html - down load attached file to this post on Atmel