Skip to content

jjangmua/onie

 
 

Repository files navigation

ONIE for Beaglebone

eMMC Memory Layout

LOCATION BLOCK SIZE.B DESCRIPTION
0x000000 - 0x00FE00 0x0000 - 0x007F 65024 MBR or GPT table
0x010000 - 0x01FE00 0x0080 - 0x00FF 65024 FDT
0x020000 - 0x03FE00 0x0100 - 0x01FF 130560 SPL.backup1 (first copy used)
0x040000 - 0x05FE00 0x0200 - 0x02FF 130560 SPL.backup2 (second copy used)
0x060000 - 0x0DFE00 0x0300 - 0x06FF 519936 U-Boot
0x0e0000 - 0x11FE00 0x0700 - 0x08FF 261632 U-Boot Env
0x120000 - 0x93FE00 0x0900 - 0x49FF 8519168 ONIE

Build Instruction

$ git clone https://github.com/jjangmua/onie.git
$ git checkout ti_bone-r0
$ cd onie/build-config/
$ make MACHINEROOT=../machine/ti MACHINE=ti_bone all

Once the compile has been finished you will be found the output file on onie/build/images/ directory

  • ti_bone-r0.MLO
  • ti_bone-r0.boot.img
  • ti_bone-r0.dtb
  • ti_bone-r0.itb

Installation

Bootloader(SPL, U-boot)

=> mmc dev 1
=> tftp $loadaddr ti_bone-r0.MLO
=> mmc write $loadaddr 100 100
=> mmc write $loadaddr 200 100

=> tftp $loadaddr ti_bone-r0.boot.img
=> mmc write $loadaddr 300 400

ONIE

=> mmc dev 1
=> tftp $loadaddr ti_bone-r0.itb
=> mmc write $loadaddr 900 4000

After the installation has been completed, you can run "run onie_rescue" in the uboot to bootup to the ONIE

Packages

No packages published

Languages

  • Makefile 46.1%
  • Shell 36.7%
  • Python 15.8%
  • C 1.3%
  • Dockerfile 0.1%