PM9G45: Difference between revisions

From Ronetix's Wiki
Jump to navigation Jump to search
(Add instructions to build at91bootstrap)
(Add instructions to build for direct Linux Kernel boot)
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
{{#vardefine:CPU|AT91SAM9G45}}
{{#vardefine:CPU|AT91SAM9G45}}
{{#vardefine:BRANCH|at91bootstrap-3.10.4_rnx}}
{{#vardefine:BRANCH|at91bootstrap-3.10.4_rnx}}
{{#vardefine:DEFCONFIG_NAME|pm9g45_nf_uboot_defconfig}}
{{#vardefine:DEFCONFIG_UBOOT_NAME|pm9g45_nf_uboot_defconfig}}
{{#vardefine:DEFCONFIG_LINUX_NAME|pm9g45_nf_linux_defconfig}}
{{#vardefine:ARCH|arm}}
{{#vardefine:ARCH|arm}}
{{#vardefine:CROSS_COMPILE|/opt/cross/arm-ronetix-eabi-8.3.0/bin/arm-ronetix-eabi-}}
{{#vardefine:CROSS_COMPILE|~/bin/arm-ronetix-eabi-11.1.0/bin/arm-ronetix-eabi-}}
{{Summary SAM9 A5 | {{#var:HARDWARE_NAME}} |
{{Summary SAM9 A5 | {{#var:HARDWARE_NAME}} |
{{#var:HARDWARE_NAME}} is a System-on-module (SoM) board in SODIMM204 format designed for embedded applications.
{{#var:HARDWARE_NAME}} is a System-on-module (SoM) board in SODIMM204 format designed for embedded applications.
Line 21: Line 22:
This bootloader is based on https://github.com/linux4sam/at91bootstrap, branch at91bootstrap-3.x
This bootloader is based on https://github.com/linux4sam/at91bootstrap, branch at91bootstrap-3.x


==== Setup the cross-compiler and CPU architecture ====
==== Install and setup the cross-compiler and CPU architecture ====
$ cd ~
$ mkdir bin
$ wget http://download.ronetix.at/toolchains/crosstool-ng/arm-ronetix-eabi-11.1.0.tar.gz
$ tar xvfz arm-ronetix-eabi-11.1.0.tar.gz --directory bin
  $ export ARCH={{#var:ARCH}}
  $ export ARCH={{#var:ARCH}}
  $ export CROSS_COMPILE={{#var:CROSS_COMPILE}}
  $ export CROSS_COMPILE={{#var:CROSS_COMPILE}}
Line 29: Line 34:
  $ cd at91bootstrap
  $ cd at91bootstrap


==== Configure and build ====
==== Configure and build for booting of U-BOOT ====
  $ make {{#var:DEFCONFIG_NAME}}
  $ make {{#var:DEFCONFIG_UBOOT_NAME}}
  $ make
  $ make
==== Configure and build for booting of Linux Kernel ====
$ make {{#var:DEFCONFIG_LINUX_NAME}}
$ make


= Build Results =
= Build Results =

Latest revision as of 14:47, 20 February 2023




PM9G45 is a System-on-module (SoM) board in SODIMM204 format designed for embedded applications.

PM9G45 is using the Microchip (ATMEL) AT91SAM9G45 CPU with an ARM926EJ CPU running at 400MHz

Product Info: https://ronetix.at/product/pm9g45-cpu-module-with-atmel-at91sam9g45

Information about at91bootstrap, U-BOOT, Linux can be found here:
https://www.linux4sam.org/bin/view/Linux4SAM/GettingStarted#Getting_Started_SAM9

Building at91bootstrap - second level bootloader for PM9G45

This bootloader is based on https://github.com/linux4sam/at91bootstrap, branch at91bootstrap-3.x

Install and setup the cross-compiler and CPU architecture

$ cd ~
$ mkdir bin
$ wget http://download.ronetix.at/toolchains/crosstool-ng/arm-ronetix-eabi-11.1.0.tar.gz
$ tar xvfz arm-ronetix-eabi-11.1.0.tar.gz --directory bin
$ export ARCH=arm
$ export CROSS_COMPILE=~/bin/arm-ronetix-eabi-11.1.0/bin/arm-ronetix-eabi-

Clone the latest revision of the repo

$ git clone git@github.com:ronetix/at91bootstrap.git -b at91bootstrap-3.10.4_rnx
$ cd at91bootstrap

Configure and build for booting of U-BOOT

$ make pm9g45_nf_uboot_defconfig
$ make

Configure and build for booting of Linux Kernel

$ make pm9g45_nf_linux_defconfig
$ make


Build Results

File Name Description
binaries/at91bootstrap.bin BIN image, should be programmed at address 0x0
binaries/at91bootstrap.elf ELF image used for JTAG debugging