hc
2023-02-13 e440ec23c5a540cdd3f7464e8779219be6fd3d95
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
Introduction
============
 
Armadeus APFxx are Systems On Module (SOM) based on Freescale/NXP i.MX
processors associated with an FPGA (except on APF28). Non volatile
data are stored in on-module NOR or NAND Flash, depending on the
model. These SOM can be used on Armadeus development boards or with
custom docking boards.
 
Supported platforms
===================
 
Buildroot currently supports the following Armadeus platforms with the
associated defconfigs:
 
 * APF27 SOM + devt board    -> armadeus_apf27_defconfig
 * APF51 SOM + devt board    -> armadeus_apf51_defconfig
 * APF28 SOM + devt board    -> armadeus_apf28_defconfig
 
Vanilla Linux versions are preferred to Freescale's one in these
configurations.
 
How to build it
===============
 
Configure Buildroot
-------------------
 
Let's say you own an APFxx SOM with it's corresponding development
board, all you have to do is:
 
  $ make armadeus_apfxx_defconfig
 
where "apfxx" is the version of your SOM.
 
Launch build
------------
 
  $ make
 
Result of the build
-------------------
 
When the build is finished, you will end up with:
 
    output/images/
    ├── imx**-apfxxdev.dtb    [1]
    ├── rootfs.tar
    ├── rootfs.ubi
    ├── rootfs.ubifs
    └── uImage
 
[1] Only if the kernel version used uses a Device Tree.
 
Building U-Boot is currently not supported in these configurations.
 
Installation
============
 
You will require a serial connection to the board and a TFTP server on
your Host PC. Assuming your server is configured for exporting
/tftpboot/ directory, you will have to copy the generated images to
it:
 
  $ cp output/images/uImage /tftpboot/apfxx-linux.bin
  $ cp output/images/*.dtb /tftpboot/
  $ cp output/images/rootfs.ubi /tftpboot/apfxx-rootfs.ubi
 
where "apfxx" is the version of your SOM, as used with _defconfigs.
 
Then on your serial terminal, all you have to do is:
 
* interrupt the boot process and access U-Boot console by pressing any
  key when booting,
* configure board and server IP addresses with "ipaddr" and "serverip"
  environment variables,
* if you want to update kernel:
  BIOS > run update_kernel
* if you want to update device tree:
  BIOS > run update_dtb
* if you want to update rootfs:
  BIOS > run update_rootfs
 
That's it !