New IT forum
26 June 2022, 05:20:50 pm *
Welcome, %1$s. Please login or register.

: CubieBoard 2 and Cubietruck both now in stock.
 
Pages: 1 [2]

Author Topic: Mirabox Kernel Modification  (Read 22645 times)

helper

  • Newbie
  • *
  • Posts: 5
Re: Mirabox Kernel Modification
« Reply #15 on: 26 September 2013, 12:44:26 am »

The first pass at support for NAND has been submitted to the linux-mtd mailing list: http://lists.infradead.org/pipermail/linux-mtd/2013-September/048702.html

I've tested this patch series and can confirm basic working mtd support. I'm able to read and write to the root filesystem that comes with the mirabox. I can also read the u-boot environment via fw_printenv and can flash a new kernel to the NAND.

Logged

josue

  • Newbie
  • *
  • Posts: 22
Re: Mirabox Kernel Modification
« Reply #16 on: 20 October 2013, 11:31:52 pm »

Hello,

I want to create a new kernel (3.11.6) and a have created with this code :

Code: [Select]
PATH="/home/build/smile/armv7-marvell-linux-gnueabi/bin:$PATH" make ARCH=arm CROSS_COMPILE=arm-marvell-linux-gnueabi- mvebu_defconfig

PATH="/home/build/smile/armv7-marvell-linux-gnueabi/bin:$PATH" make ARCH=arm CROSS_COMPILE=arm-marvell-linux-gnueabi- zImage

PATH="/home/build/smile/armv7-marvell-linux-gnueabi/bin:$PATH" make ARCH=arm CROSS_COMPILE=arm-marvell-linux-gnueabi- armada-370-mirabox.dtb

cp arch/arm/boot/zImage zImage-with-dtb

cat arch/arm/boot/dts/armada-370-mirabox.dtb >> zImage-with-dtb

./scripts/mkuboot.sh -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n 'Linux-marvell' -d zImage-with-dtb uImage

But the boot stop before the login line and I a have these lines in my serial console :

Code: [Select]
INIT: Id "T0" respawning too fast: disabled for 5 minutes
INIT: Id "T0" respawning too fast: disabled for 5 minutes

does anyone have an idea of the problem.

Thank
Logged

noidea

  • Newbie
  • *
  • Posts: 11
Re: Mirabox Kernel Modification
« Reply #17 on: 22 October 2013, 07:58:30 pm »

Hello,

If you want to build a new kernel, you must install and configure the Marvell's cross-compiler toolchain (http://www.plugcomputer.org/405/us/mirabox/cross-compilers/armv7-marvell-linux-gnueabi-softfp_i686_201201.tar.bz2) on a linux workstation. Then you must download the kernel source, configure it and finally build it.

This is the script I use

Code: [Select]
cd /usr/src/linux

#Download and extract the source (replace with the correct link & version)
wget ftp://ftp.kernel.org/pub/linux/kernel/v3.x/linux-3.11.tar.xz
tar xvfJ linux-3.11-rc7.tar.xz

#Clean previous compilation
make clean
make mrproper

#Configure cross-compiling environment (Replace with the real path)
export PATH=$PATH:/Marvell_toolchain_201201/armv7-marvell-linux-gnueabi-softfp_i686/bin/   
export ARCH=arm
export CROSS_COMPILE=arm-marvell-linux-gnueabi-

#Place the .config file to source's root folder (Get it from the mirabox kernel source 2.6)
make oldconfig

#Configure more options
make menuconfig

# Compile the kernel
make

# Create the uImage that the board can boot
cp arch/arm/boot/zImage zImage-with-dtb
cat arch/arm/boot/dts/armada-370-mirabox.dtb >> arch/arm/boot/zImage-with-dtb
./scripts/mkuboot.sh -A arm -O linux -T kernel -C none -a 0x00008000 -e 0x00008000 -n 'Linux-mirabox' -d arch/arm/boot/zImage-with-dtb arch/arm/boot/uImage

You will get the final the new uImage file in arch/arm/boot/ and you can test it with tftp.


Logged

josue

  • Newbie
  • *
  • Posts: 22
Re: Mirabox Kernel Modification
« Reply #18 on: 23 October 2013, 07:37:45 pm »

Hello,

Thank for your reply. I have found one solution. I have enabled the option in my kernel :

CONFIG_UNIX=y
CONFIG_DEVTMPFS=y 
CONFIG_SERIAL_8250_EXTENDED=y

Thanks
Logged

josue

  • Newbie
  • *
  • Posts: 22
Re: Mirabox Kernel Modification
« Reply #19 on: 08 November 2013, 10:49:35 pm »


Hello

Is that someone has managed to run the ethernet interface with this patch :

http://patchwork.ozlabs.org/patch/276906/

Or this :

A patch was submitted today by Thomas Petazzoni to the linux-arm-kernel list that fixes the network interfaces issue: http://www.spinics.net/lists/stable/msg18994.html

Thank

Logged

josue

  • Newbie
  • *
  • Posts: 22
Re: Mirabox Kernel Modification
« Reply #20 on: 05 January 2014, 08:32:32 pm »

Hello,

I have created the new kernel.

Everything work except the wifi card and nand but I dont use the nand.

Is that someone has managed to operate the wireless card ?

Currently I use this configuration for my kernel :

Code: [Select]
UNIX=y
DEVTMPFS=y

MACH_ARMADA_370=y
USB_XHCI_HCD=y

MWIFIEX=m
MWIFIEX_SDIO=m
CFG80211_WEXT=y
CFG80211_INTERNAL_REGDB=y
NL80211_TESTMODE=y
MAC80211=y
RFKILL=y
RFKILL_GPIO=m
RFKILL_INPUT=y

BRIDGE=m
IP_NF_ARPTABLES=m
BRIDGE_NF_EBTABLES=m
IP_PNP=y
P_PNP_BOOTP=y
IP_PNP_DHCP=y
P_PNP_RARP=y
PACKET=y
FILTER=y
PACKET_DIAG=m
PPP=m
PPPOE=m
PPP_FILTER=y
INET_UDP_DIAG=m
NET_UDP_DIAG=m
NETFILTER_XT_TARGET_TCPMSS=m

Thanks
Logged

helper

  • Newbie
  • *
  • Posts: 5
Re: Mirabox Kernel Modification
« Reply #21 on: 03 April 2014, 07:15:30 pm »

FYI: official NAND support landed in Linux 3.14: http://free-electrons.com/blog/linux-3-14/
Logged
Pages: 1 [2]
 
 

Powered by MySQL Powered by PHP SMF 2.0.10 | SMF © 2015, Simple Machines Valid XHTML 1.0! Valid CSS!