User Tools

Site Tools


hardware:mini2440

Mini2440

Install u-boot

  • MINI: *set switch to NOR
  • MINI: q
  • MINI: load flash 0 242332 u
  • PC: sudo ./s3c2410_boot_usb ../u-boot-256M.bin
  • 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

Flash kernel

  • PC: *copy uImage in tftpd root folder
  • MINI: tftp 0x32000000 uImage
  • MINI: nand erase 0x00060000 0x00500000
  • MINI: nand write 0x32000000 0x00060000 0x00500000

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

Compile MINI2440git kernel

  • PC: mkdir kernel ; cd kernel
  • PC: git clone git://repo.or.cz/linux-2.6/mini2440.git
  • 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

Boot kernel

  • MINI: setenv bootargs noinitrd rootdelay=4 root=/dev/mmcblk0p2 console=ttySAC0,115200
  • MINI: nboot kernel; bootm

From SD

  • MINI: mmcinit
  • 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
hardware/mini2440.txt · Last modified: 2013/05/28 11:08 by Michele Porelli