Quantcast
Channel: Processors forum - Recent Threads
Viewing all articles
Browse latest Browse all 17527

Linux/AM1705: EXTERNAL DEVICE INTERFACING WITH AM1705 AND STORING RAMDISK FILE

$
0
0

Part Number:AM1705

Tool/software: Linux

hello,

I made a custom board which runs on the AM1705 processor. so far everything works fine. the only issues I'm getting are regarding external interfacing like UART, ETHERNET, and SD-CARD at OS level.
I'm using flash memory for loading the OS, ramdisk file( DaVinci-PSP-SDK-03.20.00.14 ) and uImage(Linux "2.6.33") from "Arago projects" but these files do not have many pre-defined libraries.

UART issue is resolved as I noticed there aren't any node for UART in /dev folder but SD-CARD issue I'm still unable to resolve. also,  I went through some mounting process of SD-CARD into ramdisk file as one of TI support member suggest but all of them keep getting stuck at some level of the process because there is no /root/dev/sdX node file and file-directory of SDCARD in /root/media/MSDC (my sd card label is MSDC), hence I'm not sure how to access it(connected to MMC port). there is node files name mmcblk0(found on the internet for accessing sdcard) and I tried to mount them into ramdisk file but all these processes fails too at a certain level.

please go through these process which I tried.

1. after creating a folder via any Linux pc  /home/user1/temp_prcoess/mnt/sdcard.
$ sudo mount /home/user1/temp_prcoess/dev/mmcblk0  /home/user1/temp_prcoess/mnt/sdcard
error: mount: /home/user1/temp_prcoess/dev/mmcblk0 is not a valid block device
I tried with all partition mmcblk0p1 to mmcblk0p7.

2. after creating a folder on my project board's OS  /mnt/sdcard.
$sudo mount /dev/mmcblk0 /mnt/sdcard
error: mount: mounting /dev/mmcblk0 on /mnt/sdcard failed: No such device or address
but there are all mmcblk files present

can you please help me any web-link which I can refer to do the further process or download the file in which everything is present by default so I don't have to go through all these complicated steps.

also, one of the main disadvantages of a RAM disk is that it can only hold data temporarily, in the sense that, if a power failure occurs or if you shutdown or reboot the computer, the data of the RAM disk gets lost, permanently.(i don't have any backup supply or power management mechanism). hence I went through some online document files for storing the data into my flash drive whenever I made any changes in any file but unfortunately these process also getting stuck at some point.

e.g:

process_1:

$sudo mkdir /mnt/RAM_disk_backup
$sudo setfacl -m user:user1:rwx /mnt/RAM_disk_backup
$sudo gedit /lib/systemd/system/ram_disk_load_save.service (open up the text editor)

/**copy the whole code below into text editor and save**/

 [Unit]
Description=A script that saves and restores the data on the RAM disk

Before=umount.target
[Service]

Type=oneshot
User=usr1
ExecStart=/usr/bin/rsync -ar /mnt/RAM_disk_backup/ /mnt/RAM_disk/
ExecStop=/usr/bin/rsync -ar /mnt/RAM_disk/ /mnt/RAM_disk_backup/
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target

$crontab -e
/**Then scroll-down (use the Down-Arrow on your keyboard) and on a new line, copy and paste the below code**/
// * * * * * rsync -ar /mnt/RAM_disk/ /mnt/RAM_disk_backup/
press Ctrl + O[hit enter]
press Ctrl + X[hit enter]

the problem in this process is there is no folder name "systemd" under /lib/ (check screenshot). hence I'm unable to complete the 3rd process(unable to save text editor). also as there is no folder named "rsync" under /usr/bin/ (check screenshot) I'm sure I will get stuck on this issue as well even after resolving the previous issue.

https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/42/Screenshot-from-2018_2D00_01_2D00_06-12_2D00_54_2D00_17.png

https://e2e.ti.com/cfs-file/__key/communityserver-discussions-components-files/42/Screenshot-from-2018_2D00_01_2D00_06-12_2D00_16_2D00_17.png


Viewing all articles
Browse latest Browse all 17527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>