kopia lustrzana https://github.com/cyoung/stratux
Enable i2c on stock image. Fix USB power hack.
rodzic
fa9321246e
commit
101f434eb0
|
@ -126,7 +126,13 @@ ln -s /etc/init.d/stratux /etc/rc6.d/K01stratux
|
||||||
|
|
||||||
update-rc.d stratux enable
|
update-rc.d stratux enable
|
||||||
|
|
||||||
#usb hub power
|
|
||||||
|
#i2c
|
||||||
|
echo "i2c-bcm2708" >>/etc/modules
|
||||||
|
echo "i2c-dev" >>/etc/modules
|
||||||
|
echo "dtparam=i2c1=on" >>/boot/config.txt
|
||||||
|
|
||||||
|
#usb power
|
||||||
echo "max_usb_current=1" >>/boot/config.txt
|
echo "max_usb_current=1" >>/boot/config.txt
|
||||||
|
|
||||||
|
|
||||||
|
@ -144,10 +150,13 @@ dotask branch_image ../$OUTDIR/stage3.$IMGFORMAT $CURIMG
|
||||||
dotask run_qemu $CURIMG
|
dotask run_qemu $CURIMG
|
||||||
dotask mount_apt_cache
|
dotask mount_apt_cache
|
||||||
dotask disable_starting_services
|
dotask disable_starting_services
|
||||||
|
dotask attach_image_to_nbd $CURIMG $NBD_DEV
|
||||||
|
dotask sudo mkdir -p /boot
|
||||||
|
dotask sudo mount $BOOT_DEV /boot
|
||||||
dotask setup_stratux
|
dotask setup_stratux
|
||||||
dotask save_space_using_hardlink
|
dotask save_space_using_hardlink
|
||||||
dotask allow_starting_services
|
dotask allow_starting_services
|
||||||
dotask update_issue
|
dotask update_issue
|
||||||
dotask fingerprint_debian
|
dotask fingerprint_debian
|
||||||
dotask shutdown_qemu
|
dotask shutdown_qemu
|
||||||
dotask finish_image
|
dotask finish_image
|
Ładowanie…
Reference in New Issue