mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
8
board/terasic/de10nano_cyclone5/barebox-env/boot/mmc
Normal file
8
board/terasic/de10nano_cyclone5/barebox-env/boot/mmc
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
global.bootm.oftree="/boot/socfpga_cyclone5_de0_nano_soc.dtb"
|
||||
global.bootm.image="/boot/zImage"
|
||||
|
||||
#bootargs-ip
|
||||
|
||||
global.linux.bootargs.dyn.root="root=/dev/mmcblk0p3 rw rootwait"
|
||||
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
# SD card slot, first partition
|
||||
mkdir -p /mnt/mmcblk0p2
|
||||
automount -d /mnt/mmcblk0p2 'mount /dev/mmc0.1 /mnt/mmcblk0p2'
|
||||
@@ -0,0 +1 @@
|
||||
mmc
|
||||
@@ -0,0 +1 @@
|
||||
console=ttyS0,115200
|
||||
43
board/terasic/de10nano_cyclone5/genimage.cfg
Normal file
43
board/terasic/de10nano_cyclone5/genimage.cfg
Normal file
@@ -0,0 +1,43 @@
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
file zImage {
|
||||
image = "zImage"
|
||||
}
|
||||
|
||||
file socfpga_cyclone5_de0_nano_soc.dtb {
|
||||
image = "socfpga_cyclone5_de0_nano_soc.dtb"
|
||||
}
|
||||
|
||||
file barebox.bin {
|
||||
image = "barebox-socfpga-de10_nano.img"
|
||||
}
|
||||
|
||||
file barebox.env {
|
||||
image = "barebox-env"
|
||||
}
|
||||
}
|
||||
|
||||
size = 8M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition spl {
|
||||
partition-type = 0xa2
|
||||
image = "barebox-socfpga-de10_nano-xload.img"
|
||||
size = 1M
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = 0xc
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext2"
|
||||
}
|
||||
}
|
||||
41
board/terasic/de10nano_cyclone5/readme.txt
Normal file
41
board/terasic/de10nano_cyclone5/readme.txt
Normal file
@@ -0,0 +1,41 @@
|
||||
Terasic DE10 Nano Development Board
|
||||
|
||||
Intro
|
||||
=====
|
||||
|
||||
More information about this board can be found here:
|
||||
https://rocketboards.org/foswiki/Documentation/DE10NanoDevelopmentBoard
|
||||
|
||||
Build
|
||||
=====
|
||||
|
||||
First, load socrates config for buildroot
|
||||
|
||||
make terasic_de10nano_cyclone5_defconfig
|
||||
|
||||
Build everything
|
||||
|
||||
make
|
||||
|
||||
Following files will be generated in output/images
|
||||
|
||||
.
|
||||
├── barebox-env
|
||||
├── barebox-socfpga-de10_nano.img
|
||||
├── barebox-socfpga-de10_nano-xload.img
|
||||
├── boot.vfat
|
||||
├── rootfs.ext2
|
||||
├── rootfs.ext4 -> rootfs.ext2
|
||||
├── rootfs.tar
|
||||
├── sdcard.img
|
||||
├── socfpga_cyclone5_de0_nano_soc.dtb
|
||||
└── zImage
|
||||
|
||||
Creating bootable SD card
|
||||
=========================
|
||||
|
||||
Simply invoke
|
||||
|
||||
dd if=output/images/sdcard.img of=/dev/sdX
|
||||
|
||||
Where X is your SD card device (not partition)
|
||||
Reference in New Issue
Block a user