Here is how I finally achieved what I wanted:

Code hier eingeben...
sudo apt install doc-beaglebone-getting-started
sudo cp 
/var/cache/doc-beaglebone-getting-started/beaglebone-getting-started-2017-05-25.img
 
/var/local/bb_usb_mass_storage.img2
sudo apt remove doc-beaglebone-getting-started
sudo rm -rf /var/cache/doc-beaglebone-getting-started/
sudo mv /var/local/bb_usb_mass_storage.img2 
/var/local/bb_usb_mass_storage.img

Change usb_ms_ro=0 in /opt/scripts/boot/am335x_evm.sh

Resizing was a little bit tricky but possible using gparted and the loop 
driver on my host system:


sudo modprobe loop
sudo losetup -f
sudo losetup /dev/loop0 /var/local/bb_usb_mass_storage.img
sudo sh -c "dd if=/dev/zero bs=1M count=500 >> 
/var/local/bb_usb_mass_storage.img"
sudo gparted /dev/loop0
sudo losetup -d /dev/loop0



Am Montag, 4. September 2017 08:56:08 UTC+2 schrieb Alexander Rössler:
>
> I made some modifications to the setup_sdcard.sh and now it creates the 
> flash drive.
>
> The image file does not exist:
>
>> debian@sandybox:~$ sudo rm /var/local/usb_mass_storage.img || true  
>> rm: cannot remove '/var/local/usb_mass_storage.img': No such file or 
>> directory
>>
>  
> Btw. I do not want to boot from the FAT partition. How does the 
> usb_mass_storage.img solution work?
>
> Am Freitag, 1. September 2017 18:01:09 UTC+2 schrieb RobertCNelson:
>>
>> On Fri, Sep 1, 2017 at 10:57 AM, Alexander Rössler 
>> <[email protected]> wrote: 
>> > Okay, retried with the --img-4gb command. 
>> > 
>> >> sudo ./setup_sdcard.sh --dtb beaglebone --enable-fat-partition 
>> >> --enable-cape-universal --enable-uboot-cape-overlays --boot_label 
>> SandyBox 
>> >> --enable-systemd --hostname sandybox --img-4gb test.img 
>> > 
>> > 
>> > Interestingly it still creates a ext4 partition 
>> > 
>> > Journalcmd output 
>> > 
>> >> debian@sandybox:~$ journalctl | grep am335x_evm 
>> >> Sep 01 15:47:24 sandybox sh[641]: generic-board-startup: [startup 
>> >> script=/opt/scripts/boot/am335x_evm.sh] 
>> >> Sep 01 15:47:24 sandybox sh[641]: am335x_evm: 
>> >> usb_image_file=[/var/local/usb_mass_storage.img] 
>>
>> It's detecting the *.img file, so you'll need to remove that.. 
>>
>> sudo rm /var/local/usb_mass_storage.img || true 
>>
>> >> Sep 01 15:47:25 sandybox sh[641]: am335x_evm: uncached cpsw_2_mac: 
>> >> [78:A5:04:CC:90:EF] 
>> >> Sep 01 15:47:25 sandybox sh[641]: am335x_evm: cpsw_0_mac: 
>> >> [78:A5:04:CC:90:EE] 
>> >> Sep 01 15:47:25 sandybox sh[641]: am335x_evm: cpsw_1_mac: 
>> >> [78:A5:04:CC:90:F0] 
>> >> Sep 01 15:47:25 sandybox sh[641]: am335x_evm: cpsw_2_mac: 
>> >> [78:A5:04:CC:90:EF] 
>> >> Sep 01 15:47:25 sandybox sh[641]: am335x_evm: cpsw_3_mac: 
>> >> [78:A5:04:CC:90:F1] 
>> >> Sep 01 15:47:25 sandybox sh[641]: am335x_evm: cpsw_4_mac: 
>> >> [78:A5:04:CC:90:F2] 
>> >> Sep 01 15:47:25 sandybox sh[641]: am335x_evm: cpsw_5_mac: 
>> >> [78:A5:04:CC:90:F3] 
>> >> Sep 01 15:47:26 sandybox sh[641]: am335x_evm: use_libcomposite 
>> >> Sep 01 15:47:26 sandybox sh[641]: am335x_evm: modprobe libcomposite 
>> >> Sep 01 15:47:26 sandybox sh[641]: am335x_evm: Creating g_multi 
>> >> Sep 01 15:47:26 sandybox sh[641]: am335x_evm: g_multi Created 
>> >> Sep 01 15:47:26 sandybox sh[641]: am335x_evm: Starting usb0 network 
>> >> Sep 01 15:47:27 sandybox sh[641]: am335x_evm: Starting usb1 network 
>> >> Sep 01 15:47:28 sandybox sh[641]: am335x_evm: dnsmasq: setting up for 
>> >> usb0/usb1 
>> >> Sep 01 15:47:31 sandybox sh[641]: am335x_evm: Starting 
>> >> [email protected] 
>> > 
>>
>> Regards, 
>>
>> -- 
>> Robert Nelson 
>> https://rcn-ee.com/ 
>>
>

-- 
For more options, visit http://beagleboard.org/discuss
--- 
You received this message because you are subscribed to the Google Groups 
"BeagleBoard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/beagleboard/67f38c40-c0b2-4a1c-aec7-e8f691d46e0b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to