-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4bbc352
commit a8ba691
Showing
9 changed files
with
67 additions
and
630 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,9 @@ | ||
#!/bin/sh | ||
|
||
# Use -N to skip downloads, use -L to skip downloads and clean recompile kernel | ||
if [ "$#" -eq 0 ] || [ "$1" != "-N" ] && [ "$1" != "-L" ]; then | ||
curl https://buildroot.org/downloads/buildroot-2023.02.tar.xz | tar xJ | ||
mv buildroot* build | ||
wget -N https://github.com/raspberrypi/firmware/raw/master/boot/bcm2708-rpi-zero-w.dtb -P build/output/images/ | ||
wget -N https://github.com/raspberrypi/firmware/raw/master/boot/bootcode.bin -P build/output/images/ | ||
wget -N https://github.com/raspberrypi/firmware/raw/master/boot/start_cd.elf -P build/output/images/ | ||
wget -N https://github.com/raspberrypi/firmware/raw/master/boot/fixup_cd.dat -P build/output/images/ | ||
fi | ||
|
||
ccache make -j $(nproc) -C build defconfig BR2_DEFCONFIG=../br_defconfig && \ | ||
if [ "$#" -eq 0 ] || [ "$1" != "-L" ]; then | ||
ccache make -j $(nproc) -C build linux-dirclean | ||
fi | ||
ccache make -j $(nproc) -C build && \ | ||
yes | mv -f build/output/images/sdcard.img . && \ | ||
echo "Image built at $(pwd)/sdcard.img" | ||
curl https://buildroot.org/downloads/buildroot-2023.02.tar.xz | tar xJ | ||
mv buildroot-* build | ||
|
||
make -j $(nproc) -C build defconfig BR2_DEFCONFIG=../br_defconfig && \ | ||
make -j $(nproc) -C build && \ | ||
yes | mv -f build/output/images/sdcard.img . && \ | ||
echo "Image built at $(pwd)/sdcard.img" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
root=/dev/mmcblk0p2 rootflags=fastboot rootwait console=tty1 console=ttyAMA0,115200 | ||
root=/dev/mmcblk0p2 rootwait console=tty1 console=ttyAMA0,115200 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# can probably remove this line | ||
# This is required for the cutdown firmware | ||
gpu_mem=16 | ||
|
||
start_file=start_cd.elf | ||
fixup_file=fixup_cd.dat | ||
kernel=zImage | ||
kernel=zImage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,37 +1,30 @@ | ||
image boot.vfat { | ||
vfat { | ||
# Set to fat 16 for improved performance | ||
# Set cluster size to 512 and sectors per cluster to 1 for a smaller minimum partition | ||
extraargs = "-s 1 -S 512 -F 16" | ||
vfat { | ||
files = { | ||
"bcm2708-rpi-zero-w.dtb", | ||
"rpi-firmware/bootcode.bin", | ||
"rpi-firmware/cmdline.txt", | ||
"../../../config.txt", | ||
"rpi-firmware/fixup_cd.dat", | ||
"rpi-firmware/start_cd.elf", | ||
"zImage" | ||
} | ||
} | ||
|
||
files = { | ||
"bcm2708-rpi-zero-w.dtb", | ||
"bootcode.bin", | ||
"../../../cmdline.txt", | ||
"../../../config.txt", | ||
"fixup_cd.dat", | ||
"start_cd.elf", | ||
"zImage" | ||
} | ||
} | ||
|
||
size = 8M | ||
size = 8M | ||
} | ||
|
||
image sdcard.img { | ||
hdimage {} | ||
|
||
partition boot { | ||
# 0xE is FAT16B | ||
partition-type = 0xE | ||
bootable = "true" | ||
image = "boot.vfat" | ||
} | ||
|
||
partition rootfs { | ||
partition-type = 0x83 | ||
image = "rootfs.f2fs" | ||
} | ||
} | ||
hdimage {} | ||
|
||
partition boot { | ||
partition-type = 0xC | ||
bootable = "true" | ||
image = "boot.vfat" | ||
} | ||
|
||
partition rootfs { | ||
partition-type = 0x83 | ||
image = "rootfs.ext4" | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.