BeagleV-Fire: make sure mmc0 is mmc0

Signed-off-by: Robert Nelson <robertcnelson@gmail.com>
default-cape-symlinks
Robert Nelson 1 year ago
parent d13d0732b2
commit 1506632a0b

@ -39,7 +39,7 @@ sync
mkdir -p ./deploy/input/ || true mkdir -p ./deploy/input/ || true
echo "label Linux eMMC" > ./deploy/input/extlinux.conf echo "label Linux eMMC" > ./deploy/input/extlinux.conf
echo " kernel /Image" >> ./deploy/input/extlinux.conf echo " kernel /Image" >> ./deploy/input/extlinux.conf
echo " append root=/dev/mmcblk1p3 ro rootfstype=ext4 rootwait console=ttyS0,115200 earlycon uio_pdrv_genirq.of_id=generic-uio net.ifnames=0" >> ./deploy/input/extlinux.conf echo " append root=/dev/mmcblk0p3 ro rootfstype=ext4 rootwait console=ttyS0,115200 earlycon uio_pdrv_genirq.of_id=generic-uio net.ifnames=0" >> ./deploy/input/extlinux.conf
echo " fdtdir /" >> ./deploy/input/extlinux.conf echo " fdtdir /" >> ./deploy/input/extlinux.conf
echo " fdt /mpfs-beaglev-fire.dtb" >> ./deploy/input/extlinux.conf echo " fdt /mpfs-beaglev-fire.dtb" >> ./deploy/input/extlinux.conf
echo " #fdtoverlays /overlays/<file>.dtbo" >> ./deploy/input/extlinux.conf echo " #fdtoverlays /overlays/<file>.dtbo" >> ./deploy/input/extlinux.conf
@ -49,8 +49,8 @@ cat ./deploy/input/extlinux.conf
mkdir -p ./ignore/.root/boot/firmware/ || true mkdir -p ./ignore/.root/boot/firmware/ || true
echo '/dev/mmcblk1p2 /boot/firmware/ auto defaults 0 2' >> ./ignore/.root/etc/fstab echo '/dev/mmcblk0p2 /boot/firmware/ auto defaults 0 2' >> ./ignore/.root/etc/fstab
echo '/dev/mmcblk1p3 / auto errors=remount-ro 0 1' >> ./ignore/.root/etc/fstab echo '/dev/mmcblk0p3 / auto errors=remount-ro 0 1' >> ./ignore/.root/etc/fstab
echo 'debugfs /sys/kernel/debug debugfs mode=755,uid=root,gid=gpio,defaults 0 0' >> ./ignore/.root/etc/fstab echo 'debugfs /sys/kernel/debug debugfs mode=755,uid=root,gid=gpio,defaults 0 0' >> ./ignore/.root/etc/fstab
rm -rf ./ignore/.root/usr/lib/systemd/system/bb-usb-gadgets.service || true rm -rf ./ignore/.root/usr/lib/systemd/system/bb-usb-gadgets.service || true

@ -153,4 +153,3 @@
"dll0_ref", "dll1_ref"; "dll0_ref", "dll1_ref";
status = "okay"; status = "okay";
}; };

@ -3,9 +3,9 @@
/dts-v1/; /dts-v1/;
#include <dt-bindings/gpio/gpio.h>
#include "mpfs.dtsi" #include "mpfs.dtsi"
#include "mpfs-beaglev-fire-fabric.dtsi" #include "mpfs-beaglev-fire-fabric.dtsi"
#include <dt-bindings/gpio/gpio.h>
/* Clock frequency (in Hz) of the rtcclk */ /* Clock frequency (in Hz) of the rtcclk */
#define RTCCLK_FREQ 1000000 #define RTCCLK_FREQ 1000000
@ -25,6 +25,7 @@
}; };
aliases { aliases {
mmc0 = &mmc;
ethernet0 = &mac1; ethernet0 = &mac1;
serial0 = &mmuart0; serial0 = &mmuart0;
serial1 = &mmuart1; serial1 = &mmuart1;
@ -113,14 +114,11 @@
regulator-max-microvolt = <1200000>; regulator-max-microvolt = <1200000>;
}; };
imx219_clk: camera-clk { imx219_clk: camera-clk {
compatible = "fixed-clock"; compatible = "fixed-clock";
#clock-cells = <0>; #clock-cells = <0>;
clock-frequency = <24000000>; clock-frequency = <24000000>;
}; };
}; };
&gpio0 { &gpio0 {
@ -230,16 +228,14 @@
}; };
}; };
}; };
}; };
&mac0 { &mac0 {
dma-noncoherent; dma-noncoherent;
status = "okay";
phy-mode = "sgmii"; phy-mode = "sgmii";
phy-handle = <&phy0>; phy-handle = <&phy0>;
status = "okay";
phy0: ethernet-phy@0 { phy0: ethernet-phy@0 {
reg = <0>; reg = <0>;
}; };
@ -247,9 +243,10 @@
&mac1 { &mac1 {
dma-noncoherent; dma-noncoherent;
status = "okay";
phy-mode = "sgmii"; phy-mode = "sgmii";
phy-handle = <&phy1>; phy-handle = <&phy1>;
status = "okay";
phy1: ethernet-phy@0 { phy1: ethernet-phy@0 {
reg = <0>; reg = <0>;
}; };

@ -26,6 +26,7 @@
}; };
aliases { aliases {
mmc0 = &mmc;
ethernet0 = &mac1; ethernet0 = &mac1;
serial0 = &mmuart0; serial0 = &mmuart0;
serial1 = &mmuart1; serial1 = &mmuart1;
@ -114,14 +115,11 @@
regulator-max-microvolt = <1200000>; regulator-max-microvolt = <1200000>;
}; };
imx219_clk: camera-clk { imx219_clk: camera-clk {
compatible = "fixed-clock"; compatible = "fixed-clock";
#clock-cells = <0>; #clock-cells = <0>;
clock-frequency = <24000000>; clock-frequency = <24000000>;
}; };
}; };
&gpio0 { &gpio0 {

Loading…
Cancel
Save