-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathREADME
More file actions
101 lines (86 loc) · 4.41 KB
/
README
File metadata and controls
101 lines (86 loc) · 4.41 KB
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
After that in the directory "/home/promwad/microchip_buildroot/buildroot-external-microchip/board/microchip/polarberry" you can find script for board flashing.
There are 4 scipts:
1) Program_HSS_to_eNVM.sh
2) Program_UBOOT_to_eMMC.sh
3) Program_LINUX_to_eNVM.sh
4) Program_ALL_to_Polarberry.sh
and settings file: FLASH_CONFIG.CONF
Script is used to burn images to the Polarberry board.
The 1th is used to program ONLY HSS bootloader umage to the Polarberry board.
The 2th is used to program ONLY UBOOT image to the Polarberry board.
The 3th is used to program ONLY LINUX (Kernel and root filesystem, bith) image to the Polarberry board.
The 4th is used to program ALL (HSS, UBOOT, LINUX) images to the Polarberry oard.
The 1th script can be used with virgin Polarberry boards and requires ONLY JTAG connection with the board.
The 2th script can be used only after 1th was used (it means UBOOT programming requires HSS was installed before)
and requires JTAG and UART connection with the board.
The 3th script can be used only after 2th was used (it means Linux programming requires UBOOT (as HSS toot)
was installed before) and requires JTAG, UART and ETHERNET connection with the board.
The 4th script runs 1,2,3 one-by-one and do all thunigs that do 1,2,3 in automatic mode and requires JTAG
UART and ETHERNET connection with the board. Can be used with virgin Polarberry boards too.
Before script can be used, you need to fix values in FLASH_CONFIG.CONF according to your PC.
The file contains strings with comments, so you can advice what you need:
BUILDROOT_DIRECTORY - here you need to set PATH to the buildroot you are using
UART_DEVICE - here you need to set the name of the UART in your system. (/dev/ttyUSB1 for example)
DEVICE_IP - here you need to set IP ADDRESS that will be set on the board during flashing.
It shall be one of the free/unused IP addresses from you network.
PC_IP - here you need to set IP ADDRESS of the PC you are using. (It can be obtained via "ifconfig" command)
IMAGE_NAME - here you need to set file name with LINUX image that is placed on the TFTP server
(default value is "fitimage_polarberry.itb", and this file is built by buildroot and placed in "output/images" directory)
To start building images via buildroot you need to run this command in buildrood sources:
1) "make sundancedsp_polarberry_defconfig BR2_EXTERNAL=../buildroot-external-microchip"
(where BR2_EXTERNAL shall point to the mbuildroot microsemi sources).
2) "make"
Building will take time. Succesfull building will finish like this:
FIT description: Linux fitImage for Polaberry
Created: Wed Nov 22 05:06:16 2023
Image 0 (kernel-0)
Description: Linux Kernel
Created: Wed Nov 22 05:06:16 2023
Type: Kernel Image
Compression: uncompressed
Data Size: 17612800 Bytes = 17200.00 KiB = 16.80 MiB
Architecture: RISC-V
OS: Linux
Load Address: 0x80200000
Entry Point: 0x80200000
Hash algo: sha256
Hash value: 466f36e4c778103ce7ef2fa9dc3456cb1e25d291fe71ab96f3d88ac588004f11
Image 1 (fdt-0)
Description: Flattened Device Tree blob
Created: Wed Nov 22 05:06:16 2023
Type: Flat Device Tree
Compression: uncompressed
Data Size: 14949 Bytes = 14.60 KiB = 0.01 MiB
Architecture: RISC-V
Hash algo: sha256
Hash value: 1ccea6c67588f89a9227a5018b98048390728ef3a21ba90cbd69d8ab750843a4
Image 2 (ramdisk-0)
Description: ramdisk
Created: Wed Nov 22 05:06:16 2023
Type: RAMDisk Image
Compression: uncompressed
Data Size: 4921601 Bytes = 4806.25 KiB = 4.69 MiB
Architecture: AArch64
OS: Linux
Load Address: unavailable
Entry Point: unavailable
Hash algo: sha256
Hash value: cae144f8a5c8eb441ba01aae3d3dc1c88ea0303afe710e7d7528d04b0e963997
Default Configuration: 'conf-1'
Configuration 0 (conf-1)
Description: Boot Linux kernel with FDT blob + ramdisk
Kernel: kernel-0
Init Ramdisk: ramdisk-0
FDT: fdt-0
Hash algo: sha256
Hash value: unavailable
Configuration 1 (conf-2)
Description: Boot Linux kernel with FDT blob
Kernel: kernel-0
FDT: fdt-0
Hash algo: sha256
Hash value: unavailable
To flash the images to the Polarberry board:
1) Fix FLASH_CONFIG.CONF file in the board/microchip/polarberry directory.
2) Power ON the Polarberry board
3) run "Program_ALL_to_Polarberry.sh", and wait until all finished.