BF537 hangs after a cmdline reboot

I've posted in similar thread: https://ez.analog.com/message/143239#143239

log:

U-Boot 2013.07 (ADI-2013R1) (Jun 06 2014 - 14:03:30)

CPU:   ADSP bf537-0.3 (Detected Rev: 0.3) (spi flash boot)
Board: ADI BF537 stamp board
       Support: http://blackfin.uclinux.org/
Clock: VCO: 500 MHz, Core: 500 MHz, System: 125 MHz
RAM:   64 MiB
Flash: ## Unknown flash on Bank 1 - Size = 0x00000000 = 0 MB
0 Bytes
MMC:   
SF: Detected M25P40 with page size 64 KiB, total 512 KiB
In:    serial
Out:   serial
Err:   serial
KGDB:  [on serial] ready
Warning: Generating 'random' MAC address
Net:   bfin_mac
Hit any key to stop autoboot:  0 
bfin> setenv ipaddr 192.168.5.246
bfin> setenv serverip 192.168.5.40
bfin> tftpboot $(loadaddr) uImage
Using bfin_mac device
TFTP from server 192.168.5.40; our IP address is 192.168.5.246
Filename 'uImage'.
Load address: 0x1000000
Loading: T #################################################################
      #################################################################
      #################################################################
      #################################################################
      #################################################################
      #############################################
      507.8 KiB/s
done
Bytes transferred = 5426857 (52cea9 hex)
bfin> bootm 0x1000000
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   bf537-0.3-3.10.10-ADI-2013R1
   Created:      2014-06-06  11:46:05 UTC
   Image Type:   Blackfin Linux Kernel Image (gzip compressed)
   Data Size:    5426793 Bytes = 5.2 MiB
   Load Address: 00001000
   Entry Point:  001ef71c
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... OK
Starting Kernel at = 001ef71c
Linux version 3.10.10-ADI-2013R1 (de@de-desktop) (gcc version 4.3.5 (ADI-2013R1-RC1) ) #4 Fri Jun 6 13:46:04 CEST 2014
register early platform devices
bootconsole [early_shadow0] enabled
bootconsole [early_BFuart0] enabled
early printk enabled on early_BFuart0
Board Memory: 64MB
Kernel Managed Memory: 64MB
Memory map:
  fixedcode = 0x00000400-0x00000490
  text      = 0x00001000-0x00147750
  rodata    = 0x00147774-0x001b5438
  bss       = 0x001b6000-0x001c9280
  data      = 0x001c9280-0x001e8000
    stack   = 0x001e6000-0x001e8000
  init      = 0x001e8000-0x0062c000
  available = 0x0062c000-0x03f00000
  DMA Zone  = 0x03f00000-0x04000000
Hardware Trace active and enabled
Boot Mode: 3
Blackfin support (C) 2004-2010 Analog Devices, Inc.
Compiled for ADSP-BF537 Rev 0.3
Blackfin Linux support by http://blackfin.uclinux.org/
Processor Speed: 500 MHz core clock and 100 MHz System Clock
NOMPU: setting up cplb tables
Instruction Cache Enabled for CPU0
  External memory: cacheable in instruction cache
Data Cache Enabled for CPU0
  External memory: cacheable (write-back) in data cache
Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 16002
Kernel command line: root=/dev/mtdblock0 rw clkin_hz=25000000 earlyprintk=serial,uart0,57600 console=ttyBF0,57600
PID hash table entries: 256 (order: -2, 1024 bytes)
Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
Sorting __ex_table...
Memory available: 57584k/65536k RAM, (4368k init code, 1305k kernel code, 643k data, 1024k dma, 612k reserved)
NR_IRQS:146
Configuring Blackfin Priority Driven Interrupts
Calibrating delay loop... 995.32 BogoMIPS (lpj=1990656)
pid_max: default: 32768 minimum: 301
Mount-cache hash table entries: 512
devtmpfs: initialized
Blackfin Scratchpad data SRAM: 4 KB
Blackfin L1 Data A SRAM: 16 KB (16 KB free)
Blackfin L1 Data B SRAM: 16 KB (16 KB free)
Blackfin L1 Instruction SRAM: 48 KB (35 KB free)
NET: Registered protocol family 16
Blackfin DMA Controller
stamp_init(): registering device resources
bio: create slab  at 0
bfin-spi bfin-spi.0: master is unqueued, this is deprecated
bfin-spi bfin-spi.0: Blackfin on-chip SPI Controller Driver, Version 1.0, regs@ffc00500, dma channel@7
Switching to clocksource bfin_cs_cycles
NET: Registered protocol family 2
TCP established hash table entries: 512 (order: 0, 4096 bytes)
TCP bind hash table entries: 512 (order: -1, 2048 bytes)
TCP: Hash tables configured (established 512 bind 512)
TCP: reno registered
UDP hash table entries: 256 (order: 0, 4096 bytes)
UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
NET: Registered protocol family 1
debug-mmrs: setting up Blackfin MMR debugfs
jffs2: version 2.2. (NAND) Copyright 2001-2006 Red Hat, Inc.
msgmni has been set to 112
io scheduler noop registered (default)
bfin-uart: Blackfin serial driver
bfin-uart.0: ttyBF0 at MMIO 0xffc00400 (irq = 18) is a BFIN-UART
console [ttyBF0] enabled, bootconsole disabled
console [ttyBF0] enabled, bootconsole disabled
bfin-uart.1: ttyBF1 at MMIO 0xffc02000 (irq = 20) is a BFIN-UART
brd: module loaded
ONFI param page 0 valid
ONFI flash detected
NAND device: Manufacturer ID: 0x20, Chip ID: 0xda (ST Micro NAND02GW3B2DN6), 256MiB, page size: 2048, OOB size: 64
Scanning device for bad blocks
Bad eraseblock 1454 at 0x00000b5c0000
Bad eraseblock 1477 at 0x00000b8a0000
Bad eraseblock 1501 at 0x00000bba0000
Bad eraseblock 1505 at 0x00000bc20000
Bad eraseblock 1532 at 0x00000bf80000
Bad eraseblock 1561 at 0x00000c320000
Bad eraseblock 1628 at 0x00000cb80000
Bad eraseblock 1676 at 0x00000d180000
Bad eraseblock 1805 at 0x00000e1a0000
Creating 2 MTD partitions on "gen_nand":
0x000000000000-0x000001000000 : "linux kernel(nand)"
0x000001000000-0x000010000000 : "file system(nand)"
smc91x.c: v1.1, sep 22 2004 by Nicolas Pitre eth0: SMC91C11xFD (rev 2) at 20310300 IRQ 55 [nowait]
eth0: Invalid ethernet MAC address.  Please set using ifconfig
rtc-bfin rtc-bfin: rtc core: registered rtc-bfin as rtc0
bfin_wdt: initialized: timeout=20 sec (nowayout=0)
TCP: cubic registered
NET: Registered protocol family 17
rtc-bfin rtc-bfin: setting system clock to 1970-11-13 04:09:55 UTC (27317395)
dma_alloc_init: dma_page @ 0x006f0000 - 256 pages at 0x03f00000
Freeing unused kernel memory: 4368K (1e8000 - 62c000)
libphy: bfin_mii_bus: probed
bfin_mac: attached PHY driver [SMSC LAN83C185] (mii_bus:phy_addr=bfin_mii_bus-0:00, irq=-1, mdc_clk=2500000Hz(mdc_div=19)@sclk=100MHz)
bfin_mac bfin_mac.0 eth1: Blackfin on-chip Ethernet MAC driver, Version 1.1


BusyBox v1.21.1 (2014-06-06 13:32:53 CEST) hush - the humble shell

root:/> reboot
The system is going down NOW!
Sent SIGTERM to all processes
Sent SIGKILL to all processes
Requesting system reboot
Restarting system.

Also, there is a RAM problem related to u-boot. when 128MB is specified - I get an error on image extraction:

bfin> bootm 0x1000000
## Booting kernel from Legacy Image at 01000000 ...
   Image Name:   bf537-0.3-3.10.10-ADI-2013R1
   Created:      2014-06-06  11:46:05 UTC
   Image Type:   Blackfin Linux Kernel Image (gzip compressed)
   Data Size:    5426793 Bytes = 5.2 MiB
   Load Address: 00001000
   Entry Point:  001ef71c
   Verifying Checksum ... OK
   Uncompressing Kernel Image ... Error: inflate() returned -3
GUNZIP: uncompress, out-of-mem or overwrite error - must RESET board to recover�
  • Hi Devel, now that this issue happens on your customized hardware instead that of a ADI board, we need very detailed information about both your hardware and software changes/customization details to look into this issue. Share us patches for your code changes in both u-boot and Linux kernel, and what's the new DRAM chip you are using?

  • Hello, I'm back finally.

    There were no chenges to u-boot.

    Patch to kernel:

    diff --git a/arch/blackfin/mach-bf537/boards/stamp.c b/arch/blackfin/mach-bf537/boards/stamp.c
    index d6e977d..a2df964 100644
    --- a/arch/blackfin/mach-bf537/boards/stamp.c
    +++ b/arch/blackfin/mach-bf537/boards/stamp.c
    @@ -159,13 +159,13 @@ static struct smc91x_platdata smc91x_inf
     static struct resource smc91x_resources[] = {
          {
               .name = "smc91x-regs",
    -          .start = 0x20300300,
    -          .end = 0x20300300 + 16,
    +          .start = 0x20310300,
    +          .end = 0x20310300 + 16,
               .flags = IORESOURCE_MEM,
          }, {
     
    -          .start = IRQ_PF7,
    -          .end = IRQ_PF7,
    +          .start = IRQ_PF5,
    +          .end = IRQ_PF5,
               .flags = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHLEVEL,
          },
     };
    @@ -391,7 +391,7 @@ const char *part_probes[] = { "cmdlinepa
     static struct mtd_partition bfin_plat_nand_partitions[] = {
          {
               .name   = "linux kernel(nand)",
    -          .size   = 0x400000,
    +          .size   = 0x1000000,
               .offset = 0,
          }, {
               .name   = "file system(nand)",
    @@ -415,7 +415,7 @@ static void bfin_plat_nand_cmd_ctrl(stru
               writeb(cmd, this->IO_ADDR_W + (1 << BFIN_NAND_PLAT_ALE));
     }
     
    -#define BFIN_NAND_PLAT_READY GPIO_PF3
    +#define BFIN_NAND_PLAT_READY GPIO_PF9
     static int bfin_plat_nand_dev_ready(struct mtd_info *mtd)
     {
          return gpio_get_value(BFIN_NAND_PLAT_READY);
    @@ -437,8 +437,8 @@ static struct platform_nand_data bfin_pl
     
     #define MAX(x, y) (x > y ? x : y)
     static struct resource bfin_plat_nand_resources = {
    -     .start = 0x20212000,
    -     .end   = 0x20212000 + (1 << MAX(BFIN_NAND_PLAT_CLE, BFIN_NAND_PLAT_ALE)),
    +     .start = 0x20000000,
    +     .end   = 0x20000000 + (1 << MAX(BFIN_NAND_PLAT_CLE, BFIN_NAND_PLAT_ALE)),
          .flags = IORESOURCE_MEM,
     };
    

    linux.config:

    CONFIG_SYSVIPC=y
    CONFIG_HIGH_RES_TIMERS=y
    CONFIG_IKCONFIG=y
    CONFIG_IKCONFIG_PROC=y
    CONFIG_LOG_BUF_SHIFT=14
    CONFIG_BLK_DEV_INITRD=y
    CONFIG_INITRAMFS_SOURCE="/home/volo/blackfin-buildroot/output/images/rootfs.cpio"
    CONFIG_INITRAMFS_COMPRESSION_GZIP=y
    CONFIG_CC_OPTIMIZE_FOR_SIZE=y
    # CONFIG_FUTEX is not set
    # CONFIG_SIGNALFD is not set
    # CONFIG_TIMERFD is not set
    # CONFIG_EVENTFD is not set
    # CONFIG_AIO is not set
    CONFIG_EMBEDDED=y
    # CONFIG_VM_EVENT_COUNTERS is not set
    CONFIG_SLAB=y
    CONFIG_MMAP_ALLOW_UNINITIALIZED=y
    CONFIG_MODULES=y
    CONFIG_MODULE_UNLOAD=y
    # CONFIG_LBDAF is not set
    # CONFIG_BLK_DEV_BSG is not set
    # CONFIG_IOSCHED_DEADLINE is not set
    # CONFIG_IOSCHED_CFQ is not set
    CONFIG_PREEMPT_VOLUNTARY=y
    CONFIG_BF537=y
    CONFIG_BF_REV_0_3=y
    CONFIG_BFIN_KERNEL_CLOCK=y
    CONFIG_SCLK_DIV=5
    CONFIG_NOMMU_INITIAL_TRIM_EXCESS=0
    CONFIG_BFIN_GPTIMERS=m
    CONFIG_C_CDPRIO=y
    CONFIG_BANK_3=0x99B2
    # CONFIG_COREDUMP is not set
    CONFIG_NET=y
    CONFIG_PACKET=y
    CONFIG_UNIX=y
    CONFIG_INET=y
    CONFIG_IP_PNP=y
    # CONFIG_INET_XFRM_MODE_TRANSPORT is not set
    # CONFIG_INET_XFRM_MODE_TUNNEL is not set
    # CONFIG_INET_XFRM_MODE_BEET is not set
    # CONFIG_INET_LRO is not set
    # CONFIG_INET_DIAG is not set
    # CONFIG_IPV6 is not set
    # CONFIG_WIRELESS is not set
    CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
    CONFIG_DEVTMPFS=y
    CONFIG_DEVTMPFS_MOUNT=y
    # CONFIG_FW_LOADER is not set
    CONFIG_MTD=y
    CONFIG_MTD_CMDLINE_PARTS=y
    CONFIG_MTD_BLOCK=y
    CONFIG_MTD_CFI=m
    CONFIG_MTD_CFI_AMDSTD=m
    CONFIG_MTD_RAM=y
    CONFIG_MTD_ROM=m
    CONFIG_MTD_COMPLEX_MAPPINGS=y
    CONFIG_MTD_PHYSMAP=m
    CONFIG_MTD_NAND=y
    CONFIG_MTD_NAND_ECC_BCH=y
    CONFIG_MTD_NAND_PLATFORM=y
    CONFIG_BLK_DEV_RAM=y
    CONFIG_NETDEVICES=y
    CONFIG_NET_BFIN=y
    CONFIG_BFIN_MAC=m
    # CONFIG_NET_VENDOR_BROADCOM is not set
    # CONFIG_NET_VENDOR_INTEL is not set
    # CONFIG_NET_VENDOR_MARVELL is not set
    # CONFIG_NET_VENDOR_MICREL is not set
    # CONFIG_NET_VENDOR_MICROCHIP is not set
    # CONFIG_NET_VENDOR_NATSEMI is not set
    # CONFIG_NET_VENDOR_SEEQ is not set
    CONFIG_SMC91X=y
    CONFIG_SMSC911X=y
    # CONFIG_NET_VENDOR_STMICRO is not set
    # CONFIG_NET_VENDOR_WIZNET is not set
    CONFIG_SMSC_PHY=y
    # CONFIG_WLAN is not set
    # CONFIG_INPUT_MOUSEDEV is not set
    # CONFIG_INPUT_KEYBOARD is not set
    # CONFIG_INPUT_MOUSE is not set
    # CONFIG_SERIO is not set
    # CONFIG_VT is not set
    # CONFIG_LEGACY_PTYS is not set
    # CONFIG_BFIN_DMA_INTERFACE is not set
    # CONFIG_DEVKMEM is not set
    CONFIG_SERIAL_BFIN=y
    CONFIG_SERIAL_BFIN_CONSOLE=y
    CONFIG_SERIAL_BFIN_UART0=y
    CONFIG_SERIAL_BFIN_UART1=y
    # CONFIG_HW_RANDOM is not set
    CONFIG_I2C=m
    CONFIG_I2C_CHARDEV=m
    CONFIG_I2C_BLACKFIN_TWI=m
    CONFIG_I2C_BLACKFIN_TWI_CLK_KHZ=200
    CONFIG_SPI=y
    CONFIG_SPI_BFIN5XX=y
    CONFIG_GPIO_SYSFS=y
    CONFIG_GPIO_GENERIC_PLATFORM=y
    # CONFIG_HWMON is not set
    CONFIG_WATCHDOG=y
    CONFIG_BFIN_WDT=y
    CONFIG_BACKLIGHT_LCD_SUPPORT=y
    CONFIG_SOUND=m
    CONFIG_SND=m
    CONFIG_SND_MIXER_OSS=m
    CONFIG_SND_PCM_OSS=m
    CONFIG_SND_SOC=m
    CONFIG_SND_BF5XX_I2S=m
    CONFIG_SND_BF5XX_SOC_AD73311=m
    # CONFIG_HID_GENERIC is not set
    # CONFIG_USB_SUPPORT is not set
    CONFIG_RTC_CLASS=y
    CONFIG_RTC_DRV_BFIN=y
    # CONFIG_IOMMU_SUPPORT is not set
    # CONFIG_FILE_LOCKING is not set
    # CONFIG_DNOTIFY is not set
    # CONFIG_INOTIFY_USER is not set
    CONFIG_JFFS2_FS=y
    # CONFIG_NETWORK_FILESYSTEMS is not set
    CONFIG_DEBUG_SHIRQ=y
    CONFIG_DETECT_HUNG_TASK=y
    # CONFIG_SCHED_DEBUG is not set
    # CONFIG_DEBUG_BUGVERBOSE is not set
    # CONFIG_FTRACE is not set
    # CONFIG_DEBUG_VERBOSE is not set
    CONFIG_DEBUG_MMRS=y
    # CONFIG_DEBUG_BFIN_NO_KERN_HWTRACE is not set
    CONFIG_EARLY_PRINTK=y
    CONFIG_CPLB_INFO=y
    # CONFIG_CRYPTO_ANSI_CPRNG is not set
    # CONFIG_CRYPTO_HW is not set
    CONFIG_CRC_CCITT=m
    

    config:

    BR2_bfin=y
    BR2_GCC_TARGET_CPU_REVISION="0.3"
    BR2_BINFMT_FLAT=y
    BR2_bf537=y
    BR2_DEPRECATED=y
    BR2_TOOLCHAIN_EXTERNAL=y
    BR2_TOOLCHAIN_EXTERNAL_CUSTOM=y
    BR2_TOOLCHAIN_EXTERNAL_PATH=""
    BR2_TOOLCHAIN_EXTERNAL_CUSTOM_PREFIX="bfin-linux-uclibc"
    BR2_TOOLCHAIN_EXTERNAL_LARGEFILE=y
    BR2_TOOLCHAIN_EXTERNAL_INET_RPC=y
    BR2_TOOLCHAIN_EXTERNAL_CXX=y
    BR2_TOOLCHAIN_EXTRA_EXTERNAL_LIBS="libgfortran.so libgomp.so libmudflap.so libmudflapth.so libobjc.so"
    BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV=y
    BR2_ROOTFS_DEVICE_TABLE="board/mycorp/myboard/device_table-min.txt"
    BR2_ROOTFS_SKELETON_CUSTOM=y
    BR2_ROOTFS_SKELETON_CUSTOM_PATH="board/AnalogDevices/blackfin/target_skeleton"
    BR2_ROOTFS_OVERLAY="board/mycorp/myboard/fs-overlay"
    BR2_LINUX_KERNEL=y
    BR2_LINUX_KERNEL_CUSTOM_OVERRIDE=y
    BR2_LINUX_KERNEL_CUSTOM_OVERRIDE_PATH="linux/linux-kernel"
    BR2_LINUX_KERNEL_PATCH="board/mycorp/myboard/patches/linux-3.8/"
    BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG=y
    BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE="board/mycorp/myboard/linux.config"
    BR2_LINUX_KERNEL_VMLINUX=y
    BR2_PACKAGE_BUSYBOX_CONFIG="board/mycorp/myboard/busybox-flat.config"
    BR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y
    BR2_PACKAGE_MTD=y
    BR2_PACKAGE_MTD_MKFSJFFS2=y
    BR2_PACKAGE_H323PLUS=y
    BR2_PACKAGE_LIBGCRYPT=y
    BR2_PACKAGE_VERSION=y
    BR2_PACKAGE_INETUTILS=y
    BR2_TARGET_ROOTFS_CPIO_BZIP2=y
    BR2_TARGET_ROOTFS_INITRAMFS=y
    # BR2_TARGET_ROOTFS_TAR is not set
    BR2_PACKAGE_HOST_E2FSPROGS=y
    BR2_PACKAGE_HOST_GENEXT2FS=y
    

    No changes to busybox.

    RAM: two 64MiB chips 48LC64M8A2 -75 IT C.

    Has NAND 256 MiB: MT29F2G08AACWP

    Tried bootm and bootelf for linux image. u-boot is on SPI flash M25P40. Tried uart boot too.

    Thank you.

  • Thanks for the detailed information.

    Still I saw there are 3 or more people talking about the same (or different) issue, from the same(or different) company in thread Re: BF537 bfin_reset() in reboot.c hangs after a cmdline reboot, so I'm not sure if I have understand status and history of your issue right, correct me if not.

    Basically you are reporting 2 issues in this thread, 1) reboot command does not work fine 2)using DRAM 128M you even can't extract the kernel.

    For issue 1, you also mentioned two different target versions, with two different kind of error, please tell me which is your final target version so we can put resource to investigate. And I would recommend you to disable other changed modules, for example plat Nand, to narrow down the problem. Booting from SPI is a good idea to get a minimal system.

    For issue 2, please start a separated thread.

    For both issues, you need to do porting job for your own DRAM chip at first.

  • Moved to 2014 buildroot:

      blackfin-buildroot-2014R1-RC1

      u-boot-2013.07-2014R1

      blackfin-toolchain_2014R1-1_amd64

      blackfin-toolchain-2014R1-RC2.x86_64

    The issue with kernel extraction has disappeared. Boot is ok now.

    Everything  shows 128MiB  memory: u-boot and /proc/meminfo in linux.

    1. u-boot runs from SPI flash M25P40.

    2. Then I load linux image to 0x1000000 using tftpboot, and run bootm.

    3. Linux starts fine.

    4. When I do cmdline reboot - it hangs.

    linux config:

    CONFIG_SYSVIPC=y
    CONFIG_HIGH_RES_TIMERS=y
    CONFIG_IKCONFIG=y
    CONFIG_IKCONFIG_PROC=y
    CONFIG_LOG_BUF_SHIFT=14
    CONFIG_BLK_DEV_INITRD=y
    CONFIG_INITRAMFS_SOURCE="/home/devel/14-build-clean/output/images/rootfs.cpio"
    CONFIG_INITRAMFS_COMPRESSION_GZIP=y
    CONFIG_CC_OPTIMIZE_FOR_SIZE=y
    # CONFIG_FUTEX is not set
    # CONFIG_SIGNALFD is not set
    # CONFIG_TIMERFD is not set
    # CONFIG_EVENTFD is not set
    # CONFIG_AIO is not set
    CONFIG_EMBEDDED=y
    # CONFIG_VM_EVENT_COUNTERS is not set
    CONFIG_SLAB=y
    CONFIG_MMAP_ALLOW_UNINITIALIZED=y
    CONFIG_MODULES=y
    CONFIG_MODULE_UNLOAD=y
    # CONFIG_LBDAF is not set
    # CONFIG_BLK_DEV_BSG is not set
    # CONFIG_IOSCHED_DEADLINE is not set
    # CONFIG_IOSCHED_CFQ is not set
    CONFIG_PREEMPT_VOLUNTARY=y
    CONFIG_BF537=y
    CONFIG_BF_REV_0_3=y
    CONFIG_BFIN_KERNEL_CLOCK=y
    CONFIG_SCLK_DIV=5
    CONFIG_NOMMU_INITIAL_TRIM_EXCESS=0
    CONFIG_BFIN_GPTIMERS=m
    CONFIG_C_CDPRIO=y
    CONFIG_BANK_3=0x99B2
    CONFIG_NET=y
    CONFIG_PACKET=y
    CONFIG_UNIX=y
    CONFIG_INET=y
    CONFIG_IP_PNP=y
    # CONFIG_INET_XFRM_MODE_TRANSPORT is not set
    # CONFIG_INET_XFRM_MODE_TUNNEL is not set
    # CONFIG_INET_XFRM_MODE_BEET is not set
    # CONFIG_INET_LRO is not set
    # CONFIG_INET_DIAG is not set
    # CONFIG_IPV6 is not set
    # CONFIG_WIRELESS is not set
    CONFIG_UEVENT_HELPER_PATH="/sbin/hotplug"
    CONFIG_DEVTMPFS=y
    CONFIG_DEVTMPFS_MOUNT=y
    # CONFIG_FW_LOADER is not set
    CONFIG_BLK_DEV_RAM=y
    CONFIG_NETDEVICES=y
    CONFIG_NET_BFIN=y
    CONFIG_BFIN_MAC=m
    # CONFIG_NET_VENDOR_BROADCOM is not set
    # CONFIG_NET_VENDOR_INTEL is not set
    # CONFIG_NET_VENDOR_MARVELL is not set
    # CONFIG_NET_VENDOR_MICREL is not set
    # CONFIG_NET_VENDOR_NATSEMI is not set
    # CONFIG_NET_VENDOR_SEEQ is not set
    CONFIG_SMC91X=y
    CONFIG_SMSC911X=y
    # CONFIG_NET_VENDOR_STMICRO is not set
    # CONFIG_NET_VENDOR_WIZNET is not set
    CONFIG_SMSC_PHY=y
    # CONFIG_WLAN is not set
    # CONFIG_INPUT_MOUSEDEV is not set
    # CONFIG_INPUT_KEYBOARD is not set
    # CONFIG_INPUT_MOUSE is not set
    # CONFIG_SERIO is not set
    # CONFIG_VT is not set
    # CONFIG_LEGACY_PTYS is not set
    # CONFIG_BFIN_DMA_INTERFACE is not set
    # CONFIG_DEVKMEM is not set
    CONFIG_SERIAL_BFIN=y
    CONFIG_SERIAL_BFIN_CONSOLE=y
    CONFIG_SERIAL_BFIN_UART0=y
    CONFIG_SERIAL_BFIN_UART1=y
    # CONFIG_HW_RANDOM is not set
    CONFIG_GPIO_SYSFS=y
    CONFIG_GPIO_GENERIC_PLATFORM=y
    # CONFIG_HWMON is not set
    CONFIG_WATCHDOG=y
    CONFIG_BFIN_WDT=y
    CONFIG_BACKLIGHT_LCD_SUPPORT=y
    # CONFIG_HID_GENERIC is not set
    # CONFIG_USB_SUPPORT is not set
    CONFIG_RTC_CLASS=y
    CONFIG_RTC_DRV_BFIN=y
    # CONFIG_IOMMU_SUPPORT is not set
    # CONFIG_FILE_LOCKING is not set
    # CONFIG_DNOTIFY is not set
    # CONFIG_INOTIFY_USER is not set
    # CONFIG_NETWORK_FILESYSTEMS is not set
    CONFIG_DEBUG_SHIRQ=y
    CONFIG_DETECT_HUNG_TASK=y
    # CONFIG_SCHED_DEBUG is not set
    # CONFIG_DEBUG_BUGVERBOSE is not set
    # CONFIG_FTRACE is not set
    # CONFIG_DEBUG_VERBOSE is not set
    CONFIG_DEBUG_MMRS=y
    # CONFIG_DEBUG_BFIN_NO_KERN_HWTRACE is not set
    CONFIG_EARLY_PRINTK=y
    CONFIG_CPLB_INFO=y
    # CONFIG_CRYPTO_ANSI_CPRNG is not set
    # CONFIG_CRYPTO_HW is not set
    CONFIG_CRC_CCITT=m
    

    Nand is disabled in linux.

    u-boot include/configs/bf537-stamp.h diff:

    @@ -11,9 +11,10 @@
     /*
      * Processor Settings
      */
    -#define CONFIG_BFIN_CPU             bf537-0.2
    -#define CONFIG_BFIN_BOOT_MODE       BFIN_BOOT_BYPASS
    +#define CONFIG_BFIN_CPU             bf537-0.3
    +#define CONFIG_BFIN_BOOT_MODE       BFIN_BOOT_SPI_MASTER
     
    +#define CONFIG_BOARD_SIZE_LIMIT       $$(( 512 * 1024 ))
     
     /*
      * Clock Settings
    @@ -42,8 +43,8 @@
     /*
      * Memory Settings
      */
    -#define CONFIG_MEM_ADD_WDTH    10
    -#define CONFIG_MEM_SIZE                64
    +#define CONFIG_MEM_ADD_WDTH    11
    +#define CONFIG_MEM_SIZE                128
    

    Where is the best place to put tracing to understand this freeze?

  • Hi Devel, do you see this issue on ADI bf537-stamp board too, or it only happens on your customized board?