Debian

From Chiliboard Wiki
Jump to: navigation, search

Prepare SD Card

Download:

  • bootloader (MLO, u-boot.img)
  • boot partition filesystem (root.tar.7z)
  • root partition filesystem (boot.tar.7z)

Create partitions:

bootable

Create filesystems on partitions:

 mkfs.ext2 /dev/sdi1
 mkfs.ext4 /dev/sdi2

Write bootloader:

Mount partitions:

 sudo mkdir -p /mnt/sdi1 /mnt/sdi2
 sudo mount /dev/sdi1 /mnt/sdi1
 sudo mount /dev/sdi2 /mnt/sdi2

Unpack boot and root:

 sudo 7z x -so boot.tar.7z | tar xf - -C /mnt/sdi1
 sudo 7z x -so root.tar.7z | tar xf - -C /mnt/sdi2

Unmount partitions:

 umount /dev/sdi1
 umount /dev/sdi2


  • System hostaname: debian
  • root account password:
  • user account login: user
  • user account password:


Instaling from scratch (advanced)

SD Card preparation

Download [1] and [2]

 zcat firmware.BeagleBoneBlack.img.gz partition.img.gz > sdcard.img

Write generated sdcard.img to sdcard:

 dd if=sdcard.img of=/dev/sdi bs=1M

Written SD card image contains:

 * MLO Bootloader stored in first 2048 sectors
 * 38MB FAT partition (kernel, ramdisk, and device tree files)


Issues

U-Boot# bootz ${kernel_addr_r} ${ramdisk_addr_r}:${filesize} ${fdt_addr_r} Kernel image @ 0x82000000 [ 0x000000 - 0x3092f0 ] Wrong Ramdisk Image Format Ramdisk image is corrupt or invalid

Reason: After execution of bootz command U-Boot is checking ram disc file format (FIT or uimage header is expected). Solution: Compile U-Boot with support for native Linux ramdisc images:

 #define CONFIG_SUPPORT_RAW_INITRD

Workaround: Put initrd.gz into uboot container unitrd


raw initrd.gz is not supported by

References

Booting the Installer on 32-bit hard-float ARMv7

[3]