ltib on ubuntu 12.04 64 bit imx6s_defconfig

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ltib on ubuntu 12.04 64 bit imx6s_defconfig

Jump to solution
2,763 Views
preb
Contributor I

Hello,

I get the problem that the kernel/ltib does not find imx6s_defconfig.

It seems to me that the /opt/freescale/pkgs/linux* patches with imx6s_defconfig is not done,

but I am unable to figure out why.

I am using L3.0.35_12.09.01

+ make ARCH=arm CROSS_COMPILE= HOSTCC=ccache /usr/bin/gcc -B/usr/bin/ imx6s_defconfig

drivers/staging/ath6kl/Kconfig:18:warning: choice value used outside its choice group

drivers/staging/ath6kl/Kconfig:23:warning: choice value used outside its choice group

drivers/staging/ath6kl/Kconfig:28:warning: choice value used outside its choice group

drivers/staging/ath6kl/Kconfig:33:warning: choice value used outside its choice group

drivers/staging/ath6kl/Kconfig:52:warning: choice value used outside its choice group

drivers/staging/ath6kl/Kconfig:57:warning: choice value used outside its choice group

drivers/staging/ath6kl/Kconfig:70:warning: choice value used outside its choice group

drivers/staging/ath6kl/Kconfig:75:warning: choice value used outside its choice group

drivers/staging/ath6kl/Kconfig:80:warning: choice value used outside its choice group

***

*** Can't find default configuration "arch/arm/configs/imx6s_defconfig"!

***

make[1]: *** [imx6s_defconfig] Error 1

make: *** [imx6s_defconfig] Error 2

error: Bad exit status from /home/bjornars/imx6/source/ltib-mx6/tmp/rpm-tmp.25122 (%build)

RPM build errors:

    Bad exit status from /home/bjornars/imx6/source/ltib-mx6/tmp/rpm-tmp.25122 (%build)

Build time for kernel-3.0.35: 1 seconds

Failed building kernel-3.0.35

f_buildrpms() returned an error, exiting

traceback:

main:572

Started: Fri Jan 18 09:36:48 2013

Ended:   Fri Jan 18 09:36:49 2013

Elapsed: 1 seconds

These packages failed to build:

kernel-3.0.35

Build Failed

Exiting on error or interrupt

Labels (1)
0 Kudos
Reply
1 Solution
1,410 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,preb & Vishvapathi,

    I am using the same ubuntu version(ubuntu 12.04 64 bit), I tested your questions:

(1)Using ltib to compile it .

# cd ~/ltib

# ./ltib -c

imx6s-ltib.png

Save and Exit, Then ltib begin to compile .

#

Processing deployment operations
==================================
making filesystem image file
staging directory is /home/weidong/L3.0.35_4.0.0_130424/ltib/rootfs.tmp
removing the boot directory and files
removing man files and directories
removing info files
removing /usr/share/locale directory
removing static libraries
removing target rpm database
stripping binaries and libraries

Filesystem stats, including padding:

    Total size            = 44552k
    Total number of files = 1613


Started: Mon Jun 17 21:33:13 2013
Ended:   Mon Jun 17 21:35:52 2013
Elapsed: 159 seconds

Build Succeeded

(2)Enter into linux source directory and compile it

# cd ~/ltib

# ./ltib -m prep -p kernel

# ./ltib -m prep -p u-boot

# cd ~/ltib/rpm/BUILD/u-boot-2009.08

# export ARCH=arm

# export CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-

# make mx6solo_sabresd_config

# make

# export PATH=~/ltib/rpm/BUILD/u-boot-2009.08/tools:$PATH

# cd ~/ltib/rpm/BUILD/linux

# make clean

# make imx6s_defconfig

# make uImage

<note: at first, we compile u-boot, because we will use mkimage command to make uImage. then begin to compile linux kernel for imx6s>

Regards,

Weidong

View solution in original post

0 Kudos
Reply
6 Replies
1,410 Views
preb
Contributor I

The path goes wrong.

Same problem for uboot:

Applying ENGR00081147 Support i.MX35 3stack board

*

* You have some suspicious patch lines:

*

* In board/freescale/mx35_3stack/lowlevel_init.S

* indent SP followed by a TAB (line 381)

board/freescale/mx35_3stack/lowlevel_init.S:381:           mov r3, #0xDA

* indent SP followed by a TAB (line 400)

board/freescale/mx35_3stack/lowlevel_init.S:400:           str r3, [r1, #0x100]

+ exit 0

Linux patch error:

Applying ENGR00125411 eMMC: Boot Partition switch func used in MFG tool

Applying ENGR00126228 eMMC: Configure boot_partition_enable

Applying ENGR00133884 eMMC: improve boot_info message output

Applying ENGR00068619 JFFS2 community fix with not use OOB

Applying ENGR00069937 Community patch for Fix mount error in case of MLC flash

Applying Enable partial low interrupt latency mode for ARM1136

Applying tsc2007: fail registration on i2c error

Applying ENGR00112200 Add cryptodev device

Applying ENGR00114911 make video buffer cacheable to improve video performance

Applying cache-l2x0: add enable/disable functions

Applying nand: export symbols needed for stmp3xxx nand nand: increase max nand page and oob sizes

Applying nand: add more nand devices

Applying gadget: gadgetfs changes for MTP support

Applying usb: add ehci otg support

Applying usb: imx usb buffers in iram work-around

Applying usb: Add arc ehci driver to ehci core driver

Applying gadget: add stmp uut support to file storage

Applying ENGR00122206 MX53-EVK pwm-backlight: PWM backlight enhancement

Applying ENGR00122691-1 Add atheros driver ath6kl

*

* You have some suspicious patch lines:

*

* In drivers/net/wireless/ath6kl/bmi/src/bmi.c

* trailing whitespace (line 38)

drivers/net/wireless/ath6kl/bmi/src/bmi.c:38:                                

* trailing whitespace (line 48)

drivers/net/wireless/ath6kl/bmi/src/bmi.c:48:static A_BOOL pendingEventsFuncCheck = FALSE;

* trailing whitespace (line 56)

drivers/net/wireless/ath6kl/bmi/src/bmi.c:56:   

* trailing whitespace (line 82)

drivers/net/wireless/ath6kl/bmi/src/bmi.c:82:   

* indent SP followed by a TAB (line 170)

drivers/net/wireless/ath6kl/bmi/src/bmi.c:170:                                            targ_info->target_info_byte_count));

* indent SP followed by a TAB (line 184)

drivers/net/wireless/ath6kl/bmi/src/bmi.c:184:                                    targ_info->target_ver, targ_info->target_type));


0 Kudos
Reply
1,410 Views
vishvapathi
Contributor V

Hi Preb,

Did u find out solution for the above mentioned issue??

  1. Can't find default configuration "arch/arm/configs/imx6s_defconfig"! 
  2. *** 
  3. make[1]: *** [imx6s_defconfig] Error 1 
  4. make: *** [imx6s_defconfig] Error 2 
  5. error: Bad exit status from /home/bjornars/imx6/source/ltib-mx6/tmp/rpm-tmp.25122 (%build) 
  6. RPM build errors: 
  7.     Bad exit status from /home/bjornars/imx6/source/ltib-mx6/tmp/rpm-tmp.25122 (%build) 
  8. Build time for kernel-3.0.35: 1 seconds 
  9. Failed building kernel-3.0.35 

I am also facing the same....


0 Kudos
Reply
1,411 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,preb & Vishvapathi,

    I am using the same ubuntu version(ubuntu 12.04 64 bit), I tested your questions:

(1)Using ltib to compile it .

# cd ~/ltib

# ./ltib -c

imx6s-ltib.png

Save and Exit, Then ltib begin to compile .

#

Processing deployment operations
==================================
making filesystem image file
staging directory is /home/weidong/L3.0.35_4.0.0_130424/ltib/rootfs.tmp
removing the boot directory and files
removing man files and directories
removing info files
removing /usr/share/locale directory
removing static libraries
removing target rpm database
stripping binaries and libraries

Filesystem stats, including padding:

    Total size            = 44552k
    Total number of files = 1613


Started: Mon Jun 17 21:33:13 2013
Ended:   Mon Jun 17 21:35:52 2013
Elapsed: 159 seconds

Build Succeeded

(2)Enter into linux source directory and compile it

# cd ~/ltib

# ./ltib -m prep -p kernel

# ./ltib -m prep -p u-boot

# cd ~/ltib/rpm/BUILD/u-boot-2009.08

# export ARCH=arm

# export CROSS_COMPILE=/opt/freescale/usr/local/gcc-4.6.2-glibc-2.13-linaro-multilib-2011.12/fsl-linaro-toolchain/bin/arm-none-linux-gnueabi-

# make mx6solo_sabresd_config

# make

# export PATH=~/ltib/rpm/BUILD/u-boot-2009.08/tools:$PATH

# cd ~/ltib/rpm/BUILD/linux

# make clean

# make imx6s_defconfig

# make uImage

<note: at first, we compile u-boot, because we will use mkimage command to make uImage. then begin to compile linux kernel for imx6s>

Regards,

Weidong

0 Kudos
Reply
1,410 Views
vishvapathi
Contributor V

Hi Weidong,

         Thanks for your support. finally finished compiling LTIB on Ubuntu 12.04. Copied bootloader, uImage and rootfs files in sdcard as per the LTIB document. When i power ON the EVB connecting via serial port getting below problem.

U-Boot 2009.08 (Jun 19 2013 - 15:09:12)                                
                                                                       
CPU: Freescale i.MX6 family TO1.2 at 792 MHz                           
Thermal sensor with ratio = 189   

Temperature:   33 C, calibration data 0x5ac4de7d

mx6q pll1: 792MHz                 
mx6q pll2: 528MHz                 
mx6q pll3: 480MHz                 
mx6q pll8: 50MHz                  
ipg clock : 66000000Hz

ipg per clock : 66000000Hz

uart clock: 80000000Hz
cspi clock: 60000000Hz                                                
ahb clock : 132000000Hz                                               
axi clock   : 264000000Hz                                                 
emi_slow clock: 132000000Hz                                               
ddr clock : 528000000Hz                                               
usdhc1 clock  : 198000000Hz                                               
usdhc2 clock  : 198000000Hz                                               
usdhc3 clock  : 198000000Hz                                               
usdhc4 clock  : 198000000Hz                                               
nfc clock : 24000000Hz                                                
Board: i.MX6Q-SABRESD: unknown-board Board: 0x63012 [POR ]                
Boot Device: SD                                                           
I2C:   ready                                                              
DRAM:   1 GB                                                              
MMC:   FSL_USDHC: 0,FSL_USDHC: 1,FSL_USDHC: 2,FSL_USDHC: 3                
*** Warning - bad CRC or MMC, using default environment                   
                                                                          
In:serial                                                             
Out:   serial                                                             
Err:   serial                                                             
Found PFUZE100! deviceid=10,revid=11                                      
Net:   got MAC address from IIM: 00:04:9f:02:6c:a6                        
FEC0 [PRIME]                                                              
Hit any key to stop autoboot:  0                                          
PHY indentify @ 0x1 = 0x004dd074                                          
FEC: Link is down 7949                                                    
Using FEC0 device                                                         
TFTP from server 192.168.1.101; our IP address is 192.168.1.103           
Filename 'uImage'.                                                        
Load address: 0x10800000                                                  
Loading: FEC: Link is down 7949                                           
FEC: Link is down 7949                                                    
FEC: Link is down 7949                                                    

FEC: Link is down 7949

Did i do any mistake while compiling or copying it to SD card??


0 Kudos
Reply
1,410 Views
LeonardoSandova
Specialist I

Is that the only log you get? ‘Link is Down’ indicates some problem with the Ethernet connection.

Leo

0 Kudos
Reply
1,410 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hello,Vishvapathi,

     This is a new question, would you please create a new topic for your question ? It can help other people to find answers easily.

Thanks !

Weidog

0 Kudos
Reply