Having trouble building new kernel for this target. I am using the serial port and flashing form U-Boot. I have successfully flashed Attitude Adjustment and this is working great. However I would like to use the USB support so I am building a newer version with USB support pre-installed.
The build, BARRIER BREAKER (Bleeding Edge, r38461), builds good, flashes good, and boots up OK. My only problem is when I try to reboot from flash, then I get:
## Booting image at b0040000 ...
Check vendor string... Image Name: ADM8668 Linux Kernel(2.4.31)
Created: 2013-10-21 2:48:18 UTC
Image Type: MIPS Linux Kernel Image (uncompressed)
Data Size: 1048512 Bytes = 1023.9 kB
Load Address: 80400000
Entry Point: 80400000
Verifying Checksum ... Bad Data CRC
##### Boot failed! #####
Researching the problem led me to conclude that the new kernel may be too big, so I tried several more times to ensure that the new build is the most basic:
1. make clean
2. echo CONFIG_TARGET_adm8668=y > .config
3. make defconfig
4. make menuconfig (with no changes, just verify target)
5. make
This gives me a kernel and squashFS the same size as Attitude Ajustment, but still will not boot from flash. I can see that there were some changes in this file when I compare the bootup sequence near where the U-Boot environemnt is modified following a flash:
./target/linux/adm8668/files/drivers/mtd/maps/adm8668.c
Attitude Adjustment boot following flash:
===============================
[ 0.390000] number of CFI chips: 1
[ 0.390000] adm8668-nor: Filesystem type: squashfs, size=1675kB
[ 0.400000] Updating U-boot image:
[ 0.400000] old: [size: 2883520 crc32: 0x04751f89]
[ 0.580000] new: [size: 1048512 crc32: 0x4e1b9585]
[ 1.940000] Done
[ 1.950000] Creating 3 MTD partitions on "adm8668-nor":
[ 1.950000] 0x000000040000-0x000000800000 : "linux"
[ 1.960000] 0x000000140000-0x000000800000 : "rootfs"
[ 1.980000] mtd: partition "rootfs" set to be root filesystem
[ 1.980000] mtd: partition "rootfs_data" created automatically, ofs=2F0000, len=510000
[ 1.990000] 0x0000002f0000-0x000000800000 : "rootfs_data"
[ 2.010000] 0x000000020000-0x000000040000 : "uboot_env"
Barrier Breaker (Bleeding Edge, r38461) boot following flash:
================================================
[ 0.380000] number of CFI chips: 1
[ 0.380000] adm8668-part: filesystem type: squashfs, size=1665kB
[ 0.390000] adm8668-part: Updating U-boot image:
[ 0.390000] adm8668-part: old: [size: 2883520 crc32: 0x77f3319b]
[ 0.450000] adm8668-part: new: [size: 1048512 crc32: 0x37372a10]
[ 1.760000] adm8668-part: done
[ 1.760000] 3 adm8668part partitions found on MTD device physmap-flash
[ 1.770000] Creating 3 MTD partitions on "physmap-flash":
[ 1.770000] 0x000000040000-0x000000800000 : "linux"
[ 1.790000] 0x000000140000-0x000000800000 : "rootfs"
[ 1.800000] mtd: partition "rootfs" set to be root filesystem
[ 1.810000] mtd: partition "rootfs_data" created automatically, ofs=2F0000, len=510000
[ 1.820000] 0x0000002f0000-0x000000800000 : "rootfs_data"
[ 1.830000] 0x000000020000-0x000000040000 : "uboot_env"
I need some guidance on what to look for so I can find the solution. Again, the system will boot and run fine form TFTP, but not from flash.
Cheers!
Marc Giannoni