Initial Commit
- initial default booting image
This commit is contained in:
49
board/grinn/liteboard/genimage.cfg
Normal file
49
board/grinn/liteboard/genimage.cfg
Normal file
@@ -0,0 +1,49 @@
|
||||
# Minimal microSD card image for Grinn's liteBoard
|
||||
#
|
||||
# We mimic the .sdcard Freescale's image format for i.MX6UL:
|
||||
# * the microSD card must have 1 kB free space at the beginning,
|
||||
# * SPL is dumped as is,
|
||||
# * U-Boot is dumped at 69K offset, as configured in SPL
|
||||
# * a FAT partition at offset 8 MB is containing zImage and dtbs,
|
||||
# * a single root filesystem partition is required (Ext4 in this case).
|
||||
#
|
||||
|
||||
image boot.vfat {
|
||||
vfat {
|
||||
files = {
|
||||
"imx6ul-liteboard.dtb",
|
||||
"zImage"
|
||||
}
|
||||
}
|
||||
|
||||
size = 16M
|
||||
}
|
||||
|
||||
image sdcard.img {
|
||||
hdimage {
|
||||
}
|
||||
|
||||
partition SPL {
|
||||
in-partition-table = "no"
|
||||
image = "SPL"
|
||||
offset = 1K
|
||||
}
|
||||
|
||||
partition u-boot {
|
||||
in-partition-table = "no"
|
||||
image = "u-boot.img"
|
||||
offset = 69K
|
||||
}
|
||||
|
||||
partition boot {
|
||||
partition-type = 0xC
|
||||
bootable = "true"
|
||||
image = "boot.vfat"
|
||||
offset = 8M
|
||||
}
|
||||
|
||||
partition rootfs {
|
||||
partition-type = 0x83
|
||||
image = "rootfs.ext4"
|
||||
}
|
||||
}
|
||||
1
board/grinn/liteboard/patches/linux-headers/linux-headers.hash
Symbolic link
1
board/grinn/liteboard/patches/linux-headers/linux-headers.hash
Symbolic link
@@ -0,0 +1 @@
|
||||
../linux/linux.hash
|
||||
2
board/grinn/liteboard/patches/linux/linux.hash
Normal file
2
board/grinn/liteboard/patches/linux/linux.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# From https://www.kernel.org/pub/linux/kernel/v6.x/sha256sums.asc
|
||||
sha256 d450ab215de4e1f8bb85e0f4216760fa33fd024b4526b144f4ce0d9012b29c9e linux-6.12.6.tar.xz
|
||||
2
board/grinn/liteboard/patches/uboot/uboot.hash
Normal file
2
board/grinn/liteboard/patches/uboot/uboot.hash
Normal file
@@ -0,0 +1,2 @@
|
||||
# Locally calculated
|
||||
sha256 b28daf4ac17e43156363078bf510297584137f6df50fced9b12df34f61a92fb0 u-boot-2024.10.tar.bz2
|
||||
45
board/grinn/liteboard/readme.txt
Normal file
45
board/grinn/liteboard/readme.txt
Normal file
@@ -0,0 +1,45 @@
|
||||
*********
|
||||
liteBoard
|
||||
*********
|
||||
|
||||
Build
|
||||
=====
|
||||
|
||||
First, configure Buildroot for your liteBoard:
|
||||
|
||||
make grinn_liteboard_defconfig
|
||||
|
||||
Build image:
|
||||
|
||||
make
|
||||
|
||||
After building you should get a tree like this:
|
||||
|
||||
output/images/
|
||||
├── boot.vfat
|
||||
├── imx6ul-liteboard.dtb
|
||||
├── rootfs.ext2
|
||||
├── rootfs.ext4
|
||||
├── rootfs.tar
|
||||
├── sdcard.img
|
||||
├── u-boot.imx
|
||||
└── zImage
|
||||
|
||||
Create a bootable microSD card
|
||||
==============================
|
||||
|
||||
Buildroot prepares a bootable microSD card image "sdcard.img" in output/images/
|
||||
directory, To flash SD card just run the following command:
|
||||
|
||||
sudo dd if=output/images/sdcard.img of=/dev/<sd_card> bs=1M
|
||||
|
||||
where <sd_card> can be sdX or mmcblkX
|
||||
|
||||
*** WARNING! This will destroy all contents of device you specify! ***
|
||||
|
||||
Boot liteBoard
|
||||
==============
|
||||
|
||||
- insert the microSD card in the microSD slot of the board;
|
||||
- plug micro USB cable to provide power and console interface
|
||||
- use terminal emulator with 115200 bps, 8n1
|
||||
Reference in New Issue
Block a user