User Tools

Site Tools


hardware:mini2440

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
hardware:mini2440 [2010/10/14 08:12] – Page moved from embedded:mini2440 to hardware:mini2440 Michele Porellihardware:mini2440 [2013/05/28 09:08] (current) – [Compile kernel] Michele Porelli
Line 1: Line 1:
 ====== Mini2440 ====== ====== Mini2440 ======
-===== uboot ===== +=====  Install u-boot  ===== 
-==== Install and configure nand ==== +  * MINI: *set switch to NOR 
-=== load from usb === +  * MINI: q 
-in vivi: +  * MINI: load flash 0 242332 u 
-  * load flash 0 240128 u +  * PC:   sudo ./s3c2410_boot_usb ../u-boot-256M.bin 
-  * 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 ./s3c2410_boot_usb u-boot.bin 
  
-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:   CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm make mini2440_defconfig 
 +  * PC:   CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm make menuconfig 
 +  * PC:   CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm make 
 +  * PC:   mkimage -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008000 -d arch/arm/boot/zImage /tftpboot/uImage 
 +  * PC:   sudo make CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm INSTALL_MOD_PATH=/your/arm_root_fs/mount_point modules_install
  
-==== Install kernel image and/or rootfs ==== +===== Compile MINI2440git kernel ===== 
-  * nand erase kernel +  * PC:   mkdir kernel ; cd kernel 
-  * tftp 0x32000000 uImage +  * PC:   git clone [[git://repo.or.cz/linux-2.6/mini2440.git]] 
-  * nand write.jffs2 0x32000000 kernel $(filesize)+  * PC:   cd mini2440 
 +  * PC:   mkdir -p ../kernel-bin 
 +==== Generate .config from mini2440 template ==== 
 +  * PC:   CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm make O=../kernel-bin/ mini2440_defconfig 
 +=== (optional) if you want to modify kernel modules use this command afterwards === 
 +  * PC:   cd ../kernel-bin 
 +  * PC:   make ARCH=arm menuconfig 
 +  * PC:   cd ../mini2440 
 +==== Compile kernel and modules ==== 
 +  * PC:   CROSS_COMPILE=arm-linux-gnueabi- ARCH=arm make O=../kernel-bin/ 
 +==== Generate "uImage" with the "mkimage" tool ==== 
 +  * PC:   mkimage -A arm -O linux -T kernel -C none -a 0x30008000 -e 0x30008000 -d ../kernel-bin/arch/arm/boot/zImage /tftpboot/uImage
  
-===== compile kernel ===== +=====  Boot kernel ===== 
-  * CROSS_COMPILE=arm-none-linux-gnueabi- ARCH=arm make mini2440_defconfig +  * MINI: setenv bootargs noinitrd rootdelay=4 root=/dev/mmcblk0p2 console=ttySAC0,115200 
-  * 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,115200  
 +  * MINI: bootm 
 + 
 + 
 +===== Store boot options ===== 
 +  * MINI: setenv bootcmd mmcinit \; fatload mmc 0:1 0x31000000 uImage \; bootm 0x31000000 
 +  * MINI: saveenv 
 +  * MINI: setenv bootargs noinitrd rootdelay=4 root=/dev/mmcblk0p2 console=ttySAC0,115200 
 +  * MINI: saveenv
  
 ===== Links ===== ===== Links =====
hardware/mini2440.1287043947.txt · Last modified: (external edit)