Forum Discussion
Altera_Forum
Honored Contributor
14 years agoSet PATH during uClinux kernel boot
I'm running uClinux on the DE2 board. I've added detail in my design to include an SD card. I mount the SD card in the rc file. This allows me to easily add user files the the uClinux file system....
Altera_Forum
Honored Contributor
14 years agoWhat is your shell?
For bash, the files .bashrc or .bash_profile (something like that) get sourced at startup, so you can put export PATH=$PATH:/mnt/sd/bin in that file. Or you can first check if /mnt/sd/bin exists ... if [ -e /mnt/sd/bin ]; then export PATH=$PATH:/mnt/sd/bin fi; (No guarantees that this is valid bash code, you can Google for the correct syntax) Cheers, Dave