Udev rule for compute module - Raspberry Pi Forums
has given thought writing of udev rule such when compute module plugged host machine emmc boot disabled rpiboot gets run , boot , root partitions mounted as, say, /mnt/cmboot , /mnt/cmroot? hate testing udev rules , clearing mess after mistakes, or trying work out why nothing seems have happened, give try, if has working version i'm happy use that.
now solved, 1 liner udev rule it.
add new rule /etc/udev/rules.d, called 90-cmrules.rules containing following line replace <w> wherever have built rpiboot, , make sure it's 1 line, , remember need root this.
when plug in compute module usb slave boot enable jumper in "en" position see both red , green leds, after few seconds green led goes out, , if run lsblk see new disk, in case /dev/sdg 2 partitions /dev/sdg1 , /dev/sdg2, , added bonus, 2 partitions mounted /media/usb0 , /media/usb1.ymmv on getting partitions auto-mounted. inspection shows them boot , root partitions, , can edit away. since raspbian not running can edit , move without fear or favour, including being able totally bork system , have rewrite emmc, make backup , restore quite easy.
feel documenting how update emmc using debootstrap?
add new rule /etc/udev/rules.d, called 90-cmrules.rules containing following line
code: select all
action="add", env{id_model}=="bcm2708_boot", run+="<w>/rpiboot <w>/usbbootcode.bin <w>/msd.bin 1>/dev/null 2>/dev/null"
when plug in compute module usb slave boot enable jumper in "en" position see both red , green leds, after few seconds green led goes out, , if run lsblk see new disk, in case /dev/sdg 2 partitions /dev/sdg1 , /dev/sdg2, , added bonus, 2 partitions mounted /media/usb0 , /media/usb1.ymmv on getting partitions auto-mounted. inspection shows them boot , root partitions, , can edit away. since raspbian not running can edit , move without fear or favour, including being able totally bork system , have rewrite emmc, make backup , restore quite easy.
feel documenting how update emmc using debootstrap?
raspberrypi
Comments
Post a Comment