M900 wrote: > Hi, > > I have prepared my Raspberry Pi 3 for boot from a USB drive. > Installation of piCorePlayer on the USB drive was no problem. The system > is booting without any problems, Player is running. If I now change from > analog output to hifiberry DAC+ than the squeezelite is not running > after reboot. Manual start is also not possible. > I plan to mount the raspberry in a DIY case. The RJ45 and USB ports of > the raspberry are available on the back-panel. From my point of view, > boot piCorePlayer from USB drive would be a great benefit. Is there any > chance to get this working? > > Cheers > Jörg
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...... ------------------------------------------------------------------------ paul-'s Profile: http://forums.slimdevices.com/member.php?userid=58858 View this thread: http://forums.slimdevices.com/showthread.php?t=107352
_______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix