summaryrefslogtreecommitdiff
path: root/target/arm/pcduino-3b
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2025-04-03 20:11:19 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2025-04-04 18:16:31 +0200
commitfeba3103a6bf21b13f0e467b7c276907ef157948 (patch)
tree7eefe837b5f40865811d8aace989a700b6a6dcf2 /target/arm/pcduino-3b
parent6e599ec6fc071bc4453e9a6aa203971ee3f46539 (diff)
pcduino-3b: enable bootup via SD card
Diffstat (limited to 'target/arm/pcduino-3b')
-rw-r--r--target/arm/pcduino-3b/extlinux.conf4
-rw-r--r--target/arm/pcduino-3b/genimage.cfg20
2 files changed, 24 insertions, 0 deletions
diff --git a/target/arm/pcduino-3b/extlinux.conf b/target/arm/pcduino-3b/extlinux.conf
new file mode 100644
index 000000000..dbbb487c0
--- /dev/null
+++ b/target/arm/pcduino-3b/extlinux.conf
@@ -0,0 +1,4 @@
+LABEL default
+ kernel /boot/kernel
+ devicetreedir /boot
+ append root=PARTUUID=f6c8cabe-f191-4392-89bb-2ba14119482e rootwait console=${console} rootfstype=ext4 panic=10
diff --git a/target/arm/pcduino-3b/genimage.cfg b/target/arm/pcduino-3b/genimage.cfg
new file mode 100644
index 000000000..9d2d124f1
--- /dev/null
+++ b/target/arm/pcduino-3b/genimage.cfg
@@ -0,0 +1,20 @@
+image sdcard.img {
+ partition u-boot {
+ in-partition-table = false
+ image = "u-boot-sunxi-with-spl.bin"
+ offset = 8K
+ size = 1000K # 1MB - 8KB(offset) - 16KB(GPT)
+ }
+
+ hdimage {
+ partition-table-type = "gpt"
+ gpt-location = 1008K # 1MB - 16KB(GPT)
+ gpt-no-backup = true
+ }
+
+ partition rootfs {
+ offset = 1M
+ image = "rootfs.ext"
+ partition-uuid = f6c8cabe-f191-4392-89bb-2ba14119482e
+ }
+}