Opened 6 years ago

Closed 6 years ago

Last modified 4 years ago

#11140 closed defect (wontfix)

Bad Data CRC error when building OpenWRT with ftrace enabled in kernel

Reported by: shaddi@… Owned by: developers
Priority: normal Milestone: Barrier Breaker 14.07
Component: kernel Version: Trunk
Keywords: ftrace, nanostation Cc:


I'm trying to compile OpenWRT with ftrace onto a Nanostation, using HEAD. Compiles fine, flashes fine, but uboot says the firmware fails the data CRC check when it tries to boot.

Steps to reproduce

  1. make menuconfig
  2. Set target to Nanostation (see attached .config), save configuration
  3. make kernel_menuconfig
  4. Enable "Tracers" under "Kernel Hacking", save configuration
  5. make menuconfig, save configuration
  6. make
  7. Attempt to flash NS using tftp/urescue.

Output from reflashing:

ar7240> urescue
Setting default IP
Starting TFTP server...
Using eth0 (, address: 0x81000000
Waiting for connection: \
Receiving file from
Received 4456856 bytes
Firmware Version: XM.ar7240.v6.0.0-OpenWrt-r30952
Setting U-Boot environment variables
Un-Protected 1 sectors
Erasing Flash.... done
Erased 1 sectors
Writing to Flash... done
Protected 1 sectors
Copying partition 'kernel' to flash memory:
        erasing range 0x9F050000..0x9F24FFFF: ................................ done
Erased 32 sectors
        writing to address 0x9f050000, length 0x00200000 ...
Copying partition 'rootfs' to flash memory:
        erasing range 0x9F150000..0x9F38FFFF: .................................... done
Erased 36 sectors
        writing to address 0x9f150000, length 0x00240000 ...

Firmware update complete.


U-Boot (Jul 13 2010 - 20:06:30)

Board: Ubiquiti Networks XM board (rev 0.0 e0a5)
DRAM:  32 MB
Flash:  8 MB
Net:   eth0, eth1
Hit any key to stop autoboot:  0 
## Booting image at 9f050000 ...
   Image Name:   MIPS OpenWrt Linux-3.2.9
   Created:      2012-03-16  19:22:35 UTC
   Image Type:   MIPS Linux Kernel Image (lzma compressed)
   Data Size:    1049902 Bytes =  1 MB
   Load Address: 80060000
   Entry Point:  80060000
   Verifying Checksum ... Bad Data CRC

I have attached both my .config and .kconfig files. Please let me know if you need more information.

Attachments (2)

config (65.4 KB) - added by shaddi@… 6 years ago.
OpenWRT config
config-3.2 (6.5 KB) - added by shaddi@… 6 years ago.
kernel config

Download all attachments as: .zip

Change History (5)

Changed 6 years ago by shaddi@…

OpenWRT config

Changed 6 years ago by shaddi@…

kernel config

comment:1 Changed 6 years ago by shaddi@…

Just to add, this device flashes fine when ftrace is not enabled.

comment:2 Changed 6 years ago by nbd

  • Resolution set to wontfix
  • Status changed from new to closed

I'm pretty sure the kernel is simply too big for the boot loader to handle. You could try booting the kernel via tftp instead of from flash.

comment:3 Changed 4 years ago by jow

  • Milestone changed from Attitude Adjustment 12.09 to Barrier Breaker 14.07

Milestone Attitude Adjustment 12.09 deleted

Add Comment

Modify Ticket

as closed .
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.