kopia lustrzana https://github.com/cyoung/stratux
Fixed /boot/config.txt settings.
rodzic
101f434eb0
commit
527dbf1c34
|
@ -12,6 +12,16 @@ OUTDIR=out
|
||||||
CURIMG=stage4.$IMGFORMAT
|
CURIMG=stage4.$IMGFORMAT
|
||||||
|
|
||||||
|
|
||||||
|
setup_stratux_bootconfig() {
|
||||||
|
dotask attach_image_to_nbd $CURIMG $NBD_DEV
|
||||||
|
dotask sudo mkdir -p boot
|
||||||
|
dotask sudo mount $BOOT_DEV boot
|
||||||
|
#usb power
|
||||||
|
dotask sudo sh -c 'echo "max_usb_current=1" >>boot/config.txt'
|
||||||
|
#i2c
|
||||||
|
dotask sudo sh -c 'echo "dtparam=i2c1=on" >>boot/config.txt'
|
||||||
|
}
|
||||||
|
|
||||||
setup_stratux() {
|
setup_stratux() {
|
||||||
#HERE
|
#HERE
|
||||||
|
|
||||||
|
@ -130,10 +140,6 @@ update-rc.d stratux enable
|
||||||
#i2c
|
#i2c
|
||||||
echo "i2c-bcm2708" >>/etc/modules
|
echo "i2c-bcm2708" >>/etc/modules
|
||||||
echo "i2c-dev" >>/etc/modules
|
echo "i2c-dev" >>/etc/modules
|
||||||
echo "dtparam=i2c1=on" >>/boot/config.txt
|
|
||||||
|
|
||||||
#usb power
|
|
||||||
echo "max_usb_current=1" >>/boot/config.txt
|
|
||||||
|
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
@ -147,13 +153,19 @@ echo "**** END STRATUX SETUP *****"
|
||||||
|
|
||||||
cd $WORKDIR
|
cd $WORKDIR
|
||||||
dotask branch_image ../$OUTDIR/stage3.$IMGFORMAT $CURIMG
|
dotask branch_image ../$OUTDIR/stage3.$IMGFORMAT $CURIMG
|
||||||
|
|
||||||
|
#needs to be done before qemu is started.
|
||||||
|
|
||||||
|
dotask setup_stratux_bootconfig
|
||||||
|
|
||||||
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
|
||||||
|
|
Ładowanie…
Reference in New Issue