hardware:mini2440
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| hardware:mini2440 [2010/10/14 08:12] – Page moved from embedded:mini2440 to hardware:mini2440 Michele Porelli | hardware:mini2440 [2013/05/28 09:08] (current) – [Compile kernel] Michele Porelli | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Mini2440 ====== | ====== Mini2440 ====== | ||
| - | ===== uboot ===== | + | ===== Install |
| - | ==== Install | + | * MINI: *set switch to NOR |
| - | === load from usb === | + | * MINI: q |
| - | in vivi: | + | * MINI: load flash 0 242332 |
| - | * load flash 0 240128 | + | * PC: sudo ./ |
| - | * nand write 32000000 0 239016 | + | * MINI: go 0x30000000 |
| + | * MINI: nand createbbt | ||
| + | * MINI: dynpart | ||
| + | * MINI: dynenv set u-boot_env | ||
| + | * MINI: saveenv | ||
| + | * MINI: mtdparts | ||
| + | * MINI: set ipaddr 192.168.1.213 | ||
| + | * MINI: set serverip 192.168.1.60 | ||
| + | * MINI: tftp 0x32000000 u-boot-v132.bin | ||
| + | * MINI: mtdparts | ||
| + | * MINI: nand write 0x32000000 0x00000000 0x00040000 | ||
| + | * MINI: saveenv | ||
| + | * MINI: *poweroff | ||
| + | * MINI: *set switch to NAND | ||
| + | * MINI: *poweron | ||
| - | on pc: | ||
| - | * sudo ./ | ||
| - | reboot mini2440 | + | ===== Flash kernel |
| + | * PC: *copy uImage in tftpd root folder | ||
| + | * MINI: tftp 0x32000000 uImage | ||
| + | * MINI: nand erase 0x00060000 0x00500000 | ||
| + | * MINI: nand write 0x32000000 0x00060000 0x00500000 | ||
| - | === configure nand === | ||
| - | * nand createbbt | ||
| - | * dynpart | ||
| - | * dynenv set u-boot_env | ||
| - | * saveenv | ||
| - | * mtdparts | ||
| - | * set ipaddr 192.168.2.213 | ||
| - | * set serverip 192.168.2.3 | ||
| - | * tftp 0x32000000 u-boot-nand512.bin | ||
| - | * mtdparts | ||
| - | * nand write 0x32000000 0x00000000 0x00040000 | ||
| - | * saveenv | ||
| - | reboot mini2440 | + | ===== Compile kernel |
| + | * PC: | ||
| + | * PC: | ||
| + | * PC: | ||
| + | * PC: | ||
| + | * PC: sudo make CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm INSTALL_MOD_PATH=/ | ||
| - | ==== Install | + | ===== Compile MINI2440git |
| - | * nand erase kernel | + | * PC: mkdir kernel ; cd kernel |
| - | * tftp 0x32000000 | + | * PC: git clone [[git://repo.or.cz/ |
| - | * nand write.jffs2 0x32000000 | + | * PC: cd mini2440 |
| + | * PC: mkdir -p ../ | ||
| + | ==== Generate .config from mini2440 template | ||
| + | * PC: | ||
| + | === (optional) if you want to modify kernel modules use this command afterwards === | ||
| + | * PC: cd ../ | ||
| + | * PC: make ARCH=arm menuconfig | ||
| + | * PC: cd ../ | ||
| + | ==== Compile kernel and modules ==== | ||
| + | * PC: | ||
| + | ==== Generate "uImage" with the " | ||
| + | * PC: | ||
| - | ===== compile | + | ===== |
| - | * CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm make mini2440_defconfig | + | * MINI: setenv bootargs noinitrd rootdelay=4 root=/ |
| - | * CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm make menuconfig | + | * MINI: nboot kernel; bootm |
| - | * CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm make | + | ==== From SD ==== |
| - | * mkimage -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008000 -d arch/arm/boot/zImage /tftpboot/uImage | + | * MINI: mmcinit |
| - | * sudo make CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm INSTALL_MOD_PATH=/media/b23c87c7-46ac-4cea-b6d6-6be7acbdc271 modules_install | + | * MINI: fatload mmc 0:1 0x32000000 uImage |
| + | * MINI: setenv bootargs noinitrd rootdelay=4 root=/dev/mmcblk0p2 console=ttySAC0, | ||
| + | * MINI: bootm | ||
| + | |||
| + | |||
| + | ===== Store boot options ===== | ||
| + | * MINI: setenv bootcmd mmcinit \; fatload mmc 0:1 0x31000000 | ||
| + | * MINI: saveenv | ||
| + | * MINI: setenv bootargs noinitrd rootdelay=4 root=/dev/mmcblk0p2 console=ttySAC0, | ||
| + | * MINI: saveenv | ||
| ===== Links ===== | ===== Links ===== | ||
hardware/mini2440.1287043947.txt · Last modified: (external edit)
