- suppressed raspberry pi fondation hardware ( only Mageia packages )
- added fsck.repair=1 in config.txt
This commit is contained in:
parent
ff35f306cb
commit
10ce931950
@ -380,6 +380,7 @@ function createrpiimage()
|
|||||||
fi
|
fi
|
||||||
formatpartitions $BOOTFS ext4
|
formatpartitions $BOOTFS ext4
|
||||||
copyingsystem
|
copyingsystem
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
createimage()
|
createimage()
|
||||||
@ -486,13 +487,14 @@ UUID=$ROOT_UUID / ext4 defaults 0 0" > "$BUILD_PA
|
|||||||
|
|
||||||
case $TARGET in
|
case $TARGET in
|
||||||
rpi)
|
rpi)
|
||||||
info "copying raspberry firmware in /boot"
|
# info "copying raspberry firmware in /boot"
|
||||||
/bin/rsync -rlptDH "$FIRMWARE_PATH/firmware-stable/boot/" "$BOOT"
|
# /bin/rsync -rlptDH "$FIRMWARE_PATH/firmware-stable/boot/" "$BOOT"
|
||||||
cp -a "$FIRMWARE_PATH/firmware-stable/extra/uname_string" "$BOOT"
|
# cp -a "$FIRMWARE_PATH/firmware-stable/extra/uname_string" "$BOOT"
|
||||||
cp -a "$FIRMWARE_PATH/firmware-stable/extra/uname_string7" "$BOOT"
|
# cp -a "$FIRMWARE_PATH/firmware-stable/extra/uname_string7" "$BOOT"
|
||||||
info "copying config.txt"
|
info "copying config.txt, boot.cmd and 10-vchiq-permissions.rules"
|
||||||
cp "$SOURCE_PATH/$CONFIG_PATH/config.txt" "$BOOT"
|
cp "$SOURCE_PATH/$CONFIG_PATH/config.txt" "$BOOT"
|
||||||
info "adding modules in /etc/modules"
|
cp "$SOURCE_PATH/$CONFIG_PATH/boot.cmd" "$BOOT"
|
||||||
|
cp "$SOURCE_PATH/$CONFIG_PATH/10-vchiq-permissions.rules" "$BUILD_PATH/etc/udev/rules.d/""
|
||||||
echo "vchiq
|
echo "vchiq
|
||||||
snd_bcm2835
|
snd_bcm2835
|
||||||
vc4
|
vc4
|
||||||
@ -503,12 +505,12 @@ brcmfmac" >> "$BUILD_PATH"/etc/modules
|
|||||||
chown root:root "$BUILD_PATH/etc/modprobe.conf"
|
chown root:root "$BUILD_PATH/etc/modprobe.conf"
|
||||||
|
|
||||||
info "making /boot/cmdline.txt"
|
info "making /boot/cmdline.txt"
|
||||||
echo "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait" > "$BOOT/cmdline.txt"
|
echo "dwc_otg.lpm_enable=0 console=ttyAMA0,115200 kgdboc=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait fsck.repair=1" > "$BOOT/cmdline.txt"
|
||||||
info "copying raspberry modules in /lib/modules"
|
# info "copying raspberry modules in /lib/modules"
|
||||||
/bin/rsync -rlptDH "$FIRMWARE_PATH/firmware-stable/modules/" "$BUILD_PATH/lib/modules/"
|
# /bin/rsync -rlptDH "$FIRMWARE_PATH/firmware-stable/modules/" "$BUILD_PATH/lib/modules/"
|
||||||
|
|
||||||
info "copying raspberry optionals files in opt"
|
# info "copying raspberry optionals files in opt"
|
||||||
/bin/rsync -rlptDH "$FIRMWARE_PATH/firmware-stable/opt/" "$BUILD_PATH/opt/"
|
# /bin/rsync -rlptDH "$FIRMWARE_PATH/firmware-stable/opt/" "$BUILD_PATH/opt/"
|
||||||
|
|
||||||
info "copying wifi firmware file missing in Mageia"
|
info "copying wifi firmware file missing in Mageia"
|
||||||
/bin/mkdir -p "$ROOT/usr/lib/firmware/brcm/"
|
/bin/mkdir -p "$ROOT/usr/lib/firmware/brcm/"
|
||||||
@ -523,6 +525,7 @@ brcmfmac" >> "$BUILD_PATH"/etc/modules
|
|||||||
error "line $LINENO error copying tools"
|
error "line $LINENO error copying tools"
|
||||||
ERRORN=$((ERRORN++))
|
ERRORN=$((ERRORN++))
|
||||||
fi
|
fi
|
||||||
|
info "copying "
|
||||||
;;
|
;;
|
||||||
xu3 | xu4)
|
xu3 | xu4)
|
||||||
;;
|
;;
|
||||||
|
@ -1069,7 +1069,7 @@ arm_freq=900
|
|||||||
##
|
##
|
||||||
## Default off.
|
## Default off.
|
||||||
##
|
##
|
||||||
#dtparam=audio=off
|
dtparam=audio=on
|
||||||
|
|
||||||
## i2c_arm
|
## i2c_arm
|
||||||
## Enable the ARM's i2c interface
|
## Enable the ARM's i2c interface
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
# swarren's branch already sets this automatically, so you can skip this
|
|
||||||
# Mainline U-Boot will set the following automatically soon
|
|
||||||
setenv fdtfile bcm2835-rpi-b.dtb
|
|
||||||
|
|
||||||
mmc dev 0
|
|
||||||
fatload mmc 0:1 ${kernel_addr_r} zImage
|
|
||||||
# IMPORTANT NOTE: On mainline u-boot, the correct variable to use here is ${fdt_addr} and NOT ${fdt_addr_r}
|
|
||||||
fatload mmc 0:1 ${fdt_addr_r} ${fdtfile}
|
|
||||||
setenv bootargs earlyprintk console=tty0 console=ttyAMA0 root=/dev/mmcblk0p2 rootfstype=ext4 rootwait noinitrd
|
|
||||||
# IMPORTANT NOTE: On mainline u-boot, the correct variable to use here is ${fdt_addr} and NOT ${fdt_addr_r}
|
|
||||||
bootz ${kernel_addr_r} - ${fdt_addr_r}
|
|
Reference in New Issue
Block a user