aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Tartavel <contact@librepc.com>2018-08-04 08:37:59 +0200
committerDaniel Tartavel <contact@librepc.com>2018-08-04 08:37:59 +0200
commita28821c8f1fd2153bdb0261f49b7e8a7aad15955 (patch)
tree08b86797cb56b44ebdf57c5158d2ac114125c723
parentaf29d974d31bb2fb0ba6cfe80623c2c1a858d3d4 (diff)
downloadmageia4arm-a28821c8f1fd2153bdb0261f49b7e8a7aad15955.tar
mageia4arm-a28821c8f1fd2153bdb0261f49b7e8a7aad15955.tar.gz
mageia4arm-a28821c8f1fd2153bdb0261f49b7e8a7aad15955.tar.bz2
mageia4arm-a28821c8f1fd2153bdb0261f49b7e8a7aad15955.tar.xz
mageia4arm-a28821c8f1fd2153bdb0261f49b7e8a7aad15955.zip
First commit
-rw-r--r--common/etc/sysconfig/network3
-rw-r--r--rpi/boot.cmd5
-rw-r--r--rpi/u-boot.config11
3 files changed, 19 insertions, 0 deletions
diff --git a/common/etc/sysconfig/network b/common/etc/sysconfig/network
new file mode 100644
index 0000000..9f685fd
--- /dev/null
+++ b/common/etc/sysconfig/network
@@ -0,0 +1,3 @@
+HOSTNAME=raspberry.pi
+NETWORKING=yes
+CRDA_DOMAIN=US
diff --git a/rpi/boot.cmd b/rpi/boot.cmd
new file mode 100644
index 0000000..4d2f4c2
--- /dev/null
+++ b/rpi/boot.cmd
@@ -0,0 +1,5 @@
+fatload mmc 0:1 ${kernel_addr_r} zImage
+fatload mmc 0:1 ${fdt_addr_r} bcm2710-rpi-3-b.dtb
+fatload mmc 0:1 ${ramdisk_addr_r} uInitrd
+setenv bootargs console=ttyAMA0,115200 earlyprintk root=/dev/mmcblk0p2 rootwait panic=10
+bootz ${kernel_addr_r} ${ramdisk_addr_r} ${fdt_addr_r}
diff --git a/rpi/u-boot.config b/rpi/u-boot.config
new file mode 100644
index 0000000..b8ca6e7
--- /dev/null
+++ b/rpi/u-boot.config
@@ -0,0 +1,11 @@
+# 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}