paul- wrote:
> If you fully configure your device using the SDcard. Then use a program
> to copy the SD card to a USB stick. As long as you don't need to make
> configuration changes, it should work just fine. If the device doesn't
> boot reliably, the USB stick may not be getting recognized soon enough.
> edit cmdline.txt and increase the waitusb value.
>
> However........these edits might handle some configuration
> cases........don't yell at me if this breaks everything :) the sdcard
> device mmcblk0p? is referenced around 200 times in our code.
>
> edit /opt/bootlocal.sh to look like this
>
> >
Code:
--------------------
> >
> #!/bin/sh
> # put other system startup commands here
>
> GREEN="$(echo -e '\033[1;32m')"
>
> echo
> echo "${GREEN}Running bootlocal.sh..."
> ln -s /dev/sda1 /dev/mmcblk0p1
> ln -s /dev/sda2 /dev/mmcblk0p2
> ln -s /mnt/sda1 /mnt/mmcblk0p1
> ln -s /mnt/sda2 /mnt/mmcblk0p2
>
> #pCPstart------
> /home/tc/www/cgi-bin/do_rebootstuff.sh 2>&1 | tee -a /var/log/pcp_boot.log
> #pCPstop------
>
--------------------
> >
>
> The 4 ln commands are what you want to add. I've only done some quick
> testing, I'm sure certain parts of pCP will have problems. Please
> note that this will most likely fail if you have more than one USB
> stick inserted (as /dev/sda may change to a different USB device)
> insitu upgrades will like likely fail as well. You will have to
> resize your /dev/sda2 partition by hand too......
Hi Paul,
many thanks for your explanations. Do you think this feature could be an
option for a future pCP version?
Cheers Joerg
------------------------------------------------------------------------
M900's Profile: http://forums.slimdevices.com/member.php?userid=29839
View this thread: http://forums.slimdevices.com/showthread.php?t=107352
_______________________________________________
unix mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/unix