Initial Commit
- initial default booting image
This commit is contained in:
24
board/sifive/common/genimage_sdcard.cfg
Normal file
24
board/sifive/common/genimage_sdcard.cfg
Normal file
@@ -0,0 +1,24 @@
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
partition-table-type = "gpt"
|
||||
}
|
||||
|
||||
partition u-boot-spl {
|
||||
image = "u-boot-spl.bin"
|
||||
offset = 17K
|
||||
partition-type-uuid = 5b193300-fc78-40cd-8002-e86c45580b47
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
image = "u-boot.itb"
|
||||
offset = 1041K
|
||||
partition-type-uuid = 2e54b353-1271-4842-806f-e436d6af6985
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
image = "rootfs.ext4"
|
||||
offset = 4076K
|
||||
partition-type-uuid = 0fc63daf-8483-4772-8e79-3d69d8477de4
|
||||
bootable = true
|
||||
}
|
||||
}
|
||||
19
board/sifive/common/genimage_spi-nor.cfg
Normal file
19
board/sifive/common/genimage_spi-nor.cfg
Normal file
@@ -0,0 +1,19 @@
|
||||
image spi-nor.img {
|
||||
size = 32M
|
||||
|
||||
hdimage {
|
||||
partition-table-type = "gpt"
|
||||
}
|
||||
|
||||
partition u-boot-spl {
|
||||
image = "u-boot-spl.bin"
|
||||
offset = 20K
|
||||
partition-type-uuid = 5b193300-fc78-40cd-8002-e86c45580b47
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
image = "u-boot.itb"
|
||||
offset = 1044K
|
||||
partition-type-uuid = 2e54b353-1271-4842-806f-e436d6af6985
|
||||
}
|
||||
}
|
||||
10
board/sifive/common/linux.config.fragment
Normal file
10
board/sifive/common/linux.config.fragment
Normal file
@@ -0,0 +1,10 @@
|
||||
CONFIG_HZ_100=y
|
||||
CONFIG_GPIOLIB=y
|
||||
CONFIG_GPIO_SYSFS=y
|
||||
CONFIG_GPIO_SIFIVE=y
|
||||
CONFIG_POWER_RESET_GPIO_RESTART=y
|
||||
CONFIG_MTD=y
|
||||
CONFIG_MTD_BLOCK=y
|
||||
CONFIG_MTD_SPI_NOR=y
|
||||
CONFIG_PWM=y
|
||||
CONFIG_PWM_SIFIVE=y
|
||||
2
board/sifive/common/post-build.sh
Executable file
2
board/sifive/common/post-build.sh
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
cp "$BINARIES_DIR/boot.scr" "$TARGET_DIR/boot/boot.scr"
|
||||
Reference in New Issue
Block a user