Fedora rawhide(f23) Cubox-i 4pro

David Jones djones-proj at bluewin.ch
Fri Mar 13 18:35:37 UTC 2015


Cubox-i 4 pro

Installed Fedora kernel 4.0.0-0.rc3.git1.1.fc23.armv7hl eth0 available 
but no connection.

   As per http://rglinuxtech.com/?p=1338 modified 
linux/arch/arm/mach-imx/mach-imx6q.c on line 214
   Making the modification suggested (in the above article) and 
recompiling the kernel eth0 successfully connects.


U-boot SPL and image are from u-boot-imx6 git.

To use the normal Fedora method of kernel selection I have modified

   a-b-c.d configuration files /etc/a-b-c.d/19-config-adds

   added a new line at the end of the section headed
   #Freescale i.MX such as Wandboard and Utilite

   c_add cubox-i 'run config_default; u_extraargs="\$u_extraargs 
console=\$console,115200n8 console=tty1 video=1920x1200 at 60"; 
u_k_addr=0x10800000; u_ramfs_addr=0x12800000; u_dtb_addr=0x18000000; 
skip_dtb=""; pass_dtb=1; u_dtb=imx6q-cubox-i.dtb; u_iodevs="mmc usb"; 
u_fs=ext2; u_boot=bootz; u_devpart="0:1 0:2 0:3 1:1 1:2"'

   modified a-b-c.d configuration files /etc/a-b-c.d/21-autodetect

   Added another test for the Cubox-i with the board name mx6-cubox-i ( 
the line number 24 for elif test -n \$board; then)

   elif test -n \$board; then
     if test \$board = cubox-i; then
       run config_cubox
     fi
     if test \$board = mx6-cubox-i; then
      run config_cubox-i
     fi

  Modified boot.cmd to include cubox-i

   added ca13 then renumbered all beneath ca19 (ca20)

   setenv config_cubox 'echo Configuring for cubox;run config_imx; 
setenv u_dtb \$fdt_file'
   ca12=config_cubox
   setenv c12 "run config_cubox; run showdefs"
   setenv config_cubox-i 'echo Configuring for cubox-i;run 
config_default; u_extraargs="\$u_extraargs console=\$console,115200n8 
console=tty1 video=1920x1200 at 60"; u_k_addr=0x10800000;   
u_ramfs_addr=0x12800000; u_dtb_addr=0x18000000; skip_dtb=""; pass_dtb=1; 
u_dtb=imx6q-cubox-i.dtb; u_iodevs="mmc usb"; u_fs=ext2; u_boot=bootz; 
u_devpart="0:1 0:2 0:3 1:1 1:2"'
   ca13=config_cubox-i
   setenv c13 "run config_cubox-i; run showdefs"
   setenv config_tegra 'echo Configuring for tegra;run config_default; 
u_extraargs="\$u_extraargs console=ttyS0,115200n8"; u_k_addr=4080000; 
u_ramfs_addr=4800000; u_dtb_addr=4000000; skip_dtb=""; pass_dtb=1; 
u_iodevs="usb mmc"; u_fs=ext2; u_boot=bootz; setenv fdt_high 0x2C000000; 
setenv initrd_high 0x2C000000; u_devpart="0:1 0:2 1:1 1:2"; 
u_dtb=\${soc}-\${board}.dtb'
   ca14=config_tegra
   setenv c14 "run config_tegra; run showdefs"
   setenv config_am33xx 'echo Configuring for am33xx;run config_default; 
u_k_addr=0x80300000; u_ramfs_addr=0x82000000; u_dtb_addr=0x81400000; 
skip_dtb=""; pass_dtb=1; u_iodevs="mmc usb"; u_fs="ext4 ext2 fat"; 
u_boot=bootz; u_devpart="0:3 0:2 0:1"; u_extraargs="\$u_extraargs 
console=ttyO0,115200n8"; u_dir="/boot/ /"; setenv bootm_size 0x10000000; 
run findfdt; u_dtb="\$fdtfile"'

  Also included the changes made in  /etc/a-b-c.d/21-autodetect

   elif test -n $board; then
     if test $board = cubox-i; then
      run config_cubox
    fi
    if test $board = mx6-cubox-i; then
      run config_cubox-i
    fi


  Increased the c_count from 19 to 20

   c_count="1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20"

The only problem I have noticed is the kernel list from extlinux.conf 
does not appear, but at least the system boots and after a kernel update 
the new kernel is selected for boot.

Regards David Jones




More information about the test mailing list