-
Notifications
You must be signed in to change notification settings - Fork 2
/
tutorial
49 lines (36 loc) · 1.61 KB
/
tutorial
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
This tutorial is about the installation of U-Boot, Linux Kernel 2.6.35 and FileSystem on
i.MX53 Quick Start Board (QSB).
1. U-Boot:
I suggest follow this link: https://eewiki.net/display/linuxonarm/i.MX53+Quick+Start
sudo dd if=u-boot.imx of=/dev/mmcblk0 bs=512 seek=2
2. Linux Kernel 2.6.35-imx:
(1) Go to https://github.com/Icoteq/linux-2.6-imx and choose branch “imx_2.6.35_maintain”
(2) Download kernel
(3) make imx5_defconfig
(4) make
(5) make uImage
(6) sudo dd if=arch/arm/boot/uImage of=/dev/mmcblk0 bs=512 seek=2048
Change U-Boot parameters:
(1) setenv bootargs_base 'setenv bootargs console=ttymxc0,115200'
(2) setenv bootargs_mmc 'setenv bootargs ${bootargs} ip=192.168.10.1 root=/dev/mmcblk0p1 rootwait rw'
(3) setenv bootcmd_mmc 'run bootargs_base bootargs_mmc;mmc dev 0;mmc read ${loadaddr} 0x800 0x4000;bootm'
(4) setenv bootcmd 'run bootcmd_mmc'
(5) saveenv
(6) run bootcmd
3. File System
Create and format rootfs partition (/dev/mmcblk0p1) on SD card.
Run sudo fdisk /dev/mmcblk0
u [switch the unit to sectors instead of cylinders]
d [repeat this until no partition is reported by the ‘p’ command ]
n [create a new partition]
p [create a primary partition]
1 [the first partition]
8192 [starting at offset sector #8192, i.e. 4MB, which leaves enough space
for the kernel, the boot loader and its configuration data]
[using the default value will create a partition that spans to the
last sector of the medium]
w [ this writes the partition table to the medium and fdisk exits]
sudo mkfs.ext4 /dev/mmcblk0p1
Go to the downloaded rootfs.
sudo cp -rpa [A-z]* /media/844b21c5-9e3b-4b5c-907d-afa9e582f39a/
sync