This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

How change the crystal from 24MHz to 19.2MHz in Linux

Other Parts Discussed in Thread: AM3352

I'm using AM3352 D600ZCZ. At OSC0 of 24MHz, Linux can boot with NAND Flash ubifs smoothly. For some reason, I need change OSC0 from 24MHz to 19.2MHz. I've updated u-boot and Linux kernel (3.2.0 staging). At 19.2MHz, u-boot can find and operate NAND Flash well, and the board can boot into Linux smoothly with nfsboot. but Linux can't detect NAND Flash anymore. Please help! Thank you!

u-boot updates:

--------------------------------------------------

#define V_OSCK 19200000 /* from 24000000 */

Linux updates:

--------------------------------------------------

lizq@Ubuntu10044:~/working/ti/am335x/linux/kernel/current$ svn diff
Index: arch/arm/mach-omap2/clock33xx_data.c
===================================================================
--- arch/arm/mach-omap2/clock33xx_data.c (revision 1662)
+++ arch/arm/mach-omap2/clock33xx_data.c (working copy)
@@ -148,7 +148,7 @@
/* sys_clk_in */
static struct clk sys_clkin_ck = {
.name = "sys_clkin_ck",
- .parent = &virt_24m_ck,
+ .parent = &virt_19_2m_ck,
.init = &omap2_init_clksel_parent,
.clksel_reg = AM33XX_CTRL_REGADDR(0x40), /* CONTROL_STATUS */
.clksel_mask = (0x3 << 22),

Two boot log files are attached for 24MHz and 19.2MHz respectly.

  • 5504.AM3352_24MHz.txt

    4113.AM3352_192.MHz.txt
    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Initializing cgroup subsys cpuset
    [    0.000000] Initializing cgroup subsys cpu
    [    0.000000] Linux version 3.2.0 (lizq@Ubuntu10044) (gcc version 4.5.3 20110311 (prerelease) (GCC) ) #2 Thu Nov 20 20:35:59 CST 2014
    [    0.000000] CPU: ARMv7 Processor [413fc082] revision 2 (ARMv7), cr=10c53c7d
    [    0.000000] CPU: PIPT / VIPT nonaliasing data cache, VIPT aliasing instruction cache
    [    0.000000] Machine: am335xevm
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] AM335X ES2.1 (neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 65024
    [    0.000000] Kernel command line: console=ttyO0,115200n8 spi_autoboot_flag=0 rootdelay=3 root=/dev/nfs nfsroot=192.168.6.163:/tftpboot/rootfs,nolock rw ip=dhcp
    [    0.000000] PID hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Dentry cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Inode-cache hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.000000] allocated 1048576 bytes of page_cgroup
    [    0.000000] please try 'cgroup_disable=memory' option if you don't want memory cgroups
    [    0.000000] Memory: 256MB = 256MB total
    [    0.000000] Memory: 251904k/251904k available, 10240k reserved, 0K highmem
    [    0.000000] Virtual kernel memory layout:
    [    0.000000]     vector  : 0xffff0000 - 0xffff1000   (   4 kB)
    [    0.000000]     fixmap  : 0xfff00000 - 0xfffe0000   ( 896 kB)
    [    0.000000]     vmalloc : 0xd0800000 - 0xff000000   ( 744 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xd0000000   ( 256 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc05f3000   (6060 kB)
    [    0.000000]       .init : 0xc05f3000 - 0xc0630000   ( 244 kB)
    [    0.000000]       .data : 0xc0630000 - 0xc0692e38   ( 396 kB)
    [    0.000000]        .bss : 0xc0692e5c - 0xc06c316c   ( 193 kB)
    [    0.000000] NR_IRQS:396
    [    0.000000] IRQ: Found an INTC at 0xfa200000 (revision 5.0) with 128 interrupts
    [    0.000000] Total of 128 interrupts on 1 active controller
    [    0.000000] OMAP clockevent source: GPTIMER2 at 19200000 Hz
    [    0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
    [    0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000122] Calibrating delay loop... 603.34 BogoMIPS (lpj=3016704)
    [    0.058349] pid_max: default: 32768 minimum: 301
    [    0.058502] Security Framework initialized
    [    0.058624] Mount-cache hash table entries: 512
    [    0.059112] Initializing cgroup subsys debug
    [    0.059112] Initializing cgroup subsys cpuacct
    [    0.059143] Initializing cgroup subsys memory
    [    0.059204] Initializing cgroup subsys devices
    [    0.059204] Initializing cgroup subsys freezer
    [    0.059204] Initializing cgroup subsys blkio
    [    0.059265] CPU: Testing write buffer coherency: ok
    [    0.060272] devtmpfs: initialized
    [    0.081146] omap_hwmod: gfx: failed to hardreset
    [    0.098266] omap_hwmod: pruss: failed to hardreset
    [    0.099731] print_constraints: dummy: 
    [    0.100158] NET: Registered protocol family 16
    [    0.102874] OMAP GPIO hardware version 0.1
    [    0.105926] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.108306]  omap_i2c.1: alias fck already exists
    [    0.109527]  omap2_mcspi.1: alias fck already exists
    [    0.109802]  omap2_mcspi.2: alias fck already exists
    [    0.110046] omap_init_sham: platform not supported
    [    0.110076] omap_init_aes: platform not supported
    [    0.110168]  edma.0: alias fck already exists
    [    0.110168]  edma.0: alias fck already exists
    [    0.110198]  edma.0: alias fck already exists
    [    0.133911] bio: create slab <bio-0> at 0
    [    0.136596] SCSI subsystem initialized
    [    0.138763] usbcore: registered new interface driver usbfs
    [    0.139190] usbcore: registered new interface driver hub
    [    0.139434] usbcore: registered new device driver usb
    [    0.139801] registerd cppi-dma Intr @ IRQ 17
    [    0.139831] Cppi41 Init Done Qmgr-base(d087a000) dma-base(d0878000)
    [    0.139831] Cppi41 Init Done
    [    0.139862] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.140228] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.158447] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.162536] Switching to clocksource gp timer
    [    0.185302] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.185516] musb-hdrc musb-hdrc.0: dma type: dma-cppi41
    [    0.185943] MUSB0 controller's USBSS revision = 4ea20800
    [    0.185974] musb0: Enabled SW babble control
    [    0.187194] musb-hdrc musb-hdrc.0: USB OTG mode controller at d083c000 using DMA, IRQ 18
    [    0.187408] musb-hdrc musb-hdrc.1: dma type: dma-cppi41
    [    0.187774] MUSB1 controller's USBSS revision = 4ea20800
    [    0.187805] musb1: Enabled SW babble control
    [    0.188385] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.188507] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.188690] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.188690] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.188720] usb usb1: Product: MUSB HDRC host driver
    [    0.188720] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [    0.188751] usb usb1: SerialNumber: musb-hdrc.1
    [    0.189941] hub 1-0:1.0: USB hub found
    [    0.189971] hub 1-0:1.0: 1 port detected
    [    0.190765] musb-hdrc musb-hdrc.1: USB Host mode controller at d083e800 using DMA, IRQ 19
    [    0.191314] NET: Registered protocol family 2
    [    0.191558] IP route cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.192016] TCP established hash table entries: 8192 (order: 4, 65536 bytes)
    [    0.192199] TCP bind hash table entries: 8192 (order: 3, 32768 bytes)
    [    0.192321] TCP: Hash tables configured (established 8192 bind 8192)
    [    0.192321] TCP reno registered
    [    0.192352] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.192382] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.192687] NET: Registered protocol family 1
    [    0.193023] RPC: Registered named UNIX socket transport module.
    [    0.193054] RPC: Registered udp transport module.
    [    0.193054] RPC: Registered tcp transport module.
    [    0.193084] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.193328] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.194000] cpuidle-am33xx cpuidle-am33xx.0: failed to register driver
    [    0.207916] VFS: Disk quotas dquot_6.5.2
    [    0.208007] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.209777] msgmni has been set to 492
    [    0.213928] alg: No test for stdrng (krng)
    [    0.214019] io scheduler noop registered
    [    0.214050] io scheduler deadline registered
    [    0.214172] io scheduler cfq registered (default)
    [    0.215728] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.849975] console [ttyO0] enabled
    [    0.854553] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.862548] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.870544] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.878448] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.886413] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.906646] brd: module loaded
    [    0.916473] loop: module loaded
    [    0.919982] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.926452] i2c-core: driver [tsl2550] using legacy resume method
    [    0.932891] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    0.942687] ID EEPROM: detected.
    [    0.946075] ID EEPROM: TAG not valid
    [    0.950805] tps65217 1-0024: TPS65217 ID 0xf version 1.2
    [    0.958648] print_constraints: DCDC1: 900 <--> 1800 mV at 1800 mV 
    [    0.967407] print_constraints: DCDC2: 900 <--> 3300 mV at 1275 mV 
    [    0.976165] print_constraints: DCDC3: 900 <--> 1500 mV at 1100 mV 
    [    0.984863] print_constraints: LDO1: 1000 <--> 3300 mV at 1800 mV 
    [    0.993591] print_constraints: LDO2: 900 <--> 3300 mV at 3300 mV 
    [    1.002166] print_constraints: LDO3: 1800 <--> 3300 mV at 3300 mV 
    [    1.010864] print_constraints: LDO4: 1800 <--> 3300 mV at 3300 mV 
    [    1.018188] Configure GPIOs...
    [    1.025451]  omap_hsmmc.0: alias fck already exists
    [    1.032714] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.037780] Registering NAND on CS0
    [    1.043609] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.051666] BOOT EEPROM: detected.
    [    1.055267] at24 1-0053: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.113159] PLC EEPROM: read fail(-110)!
    [    1.117309] at24 1-0054: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.126983] CPL EEPROM: detected.
    [    1.130432] CPL EEPROM: TAG not valid
    [    1.137603] m25p80 spi1.0: w25q128 (16384 Kbytes)
    [    1.142822] Creating 10 MTD partitions on "spi_flash":
    [    1.148254] 0x000000000000-0x000000080000 : "SPL/MLO(Golden,RO)"
    [    1.156524] 0x000000080000-0x000000100000 : "U-Boot (Golden,RO)"
    [    1.164642] 0x000000100000-0x000000500000 : "Kernel (Golden,RO)"
    [    1.172576] 0x000000500000-0x000000580000 : "U-Boot (Bank-A)"
    [    1.180297] 0x000000580000-0x000000600000 : "U-Boot (Bank-B)"
    [    1.187988] 0x000000600000-0x000000680000 : "U-Boot Env (Bank-A)"
    [    1.196014] 0x000000680000-0x000000700000 : "U-Boot Env (Bank-B)"
    [    1.204040] 0x000000700000-0x000000b00000 : "Kernel (Bank-A)"
    [    1.211700] 0x000000b00000-0x000000f00000 : "Kernel (Bank-B)"
    [    1.219482] 0x000000f00000-0x000001000000 : "App Data"
    [    1.227294] omap2-nand driver initializing
    [    1.231872] nand_get_flash_type: second ID read did not match 90,d5 against 56,00
    [    1.239715] No NAND device found
    [    1.243255] nand_get_flash_type: second ID read did not match 90,d5 against 56,00
    [    1.251068] No NAND device found
    [    1.254669] OneNAND driver initializing
    [    1.262237] CAN device driver interface
    [    1.266265] CAN bus driver for Bosch D_CAN controller 1.0
    [    1.313201] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    1.319671] davinci_mdio davinci_mdio.0: detected phy mask fffffffc
    [    1.327758] davinci_mdio.0: probed
    [    1.331298] davinci_mdio davinci_mdio.0: phy[0]: device 0:00, driver Broadcom BCM5241
    [    1.339508] davinci_mdio davinci_mdio.0: phy[1]: device 0:01, driver Broadcom BCM5241
    [    1.348083] usbcore: registered new interface driver zd1201
    [    1.353912] Initializing USB Mass Storage driver...
    [    1.359313] usbcore: registered new interface driver usb-storage
    [    1.365600] USB Mass Storage support registered.
    [    1.370635]  gadget: Mass Storage Function, version: 2009/09/11
    [    1.376831]  gadget: Number of LUNs=1
    [    1.380645]  lun0: LUN: removable file: (no medium)
    [    1.385772]  gadget: Mass Storage Gadget, version: 2009/09/11
    [    1.391784]  gadget: userspace failed to provide iSerialNumber
    [    1.397857]  gadget: g_mass_storage ready
    [    1.402069] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [    1.407684] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
    [    1.415557] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [    1.422637] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    1.430175] usb usb2: Product: MUSB HDRC host driver
    [    1.435363] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
    [    1.440887] usb usb2: SerialNumber: musb-hdrc.0
    [    1.446777] hub 2-0:1.0: USB hub found
    [    1.450744] hub 2-0:1.0: 1 port detected
    [    1.456420] mousedev: PS/2 mouse device common for all mice
    [    1.465026] rtc-ds1307 1-0068: rtc core: registered ds1307 as rtc0
    [    1.471466] rtc-ds1307 1-0068: 56 bytes nvram
    [    1.476257] i2c /dev entries driver
    [    1.482421] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.568817] omap_sham_mod_init: loading omap-sham driver
    [    1.574401] omap_sham_mod_init: Unsupported cpu
    [    1.579132] omap_aes_mod_init: loading omap-aes driver
    [    1.584503] omap_aes_mod_init: Unsupported cpu
    [    1.592498] usbcore: registered new interface driver usbhid
    [    1.598358] usbhid: USB HID core driver
    [    1.602355] oprofile: hardware counters not available
    [    1.607635] oprofile: using timer interrupt.
    [    1.612274] Netfilter messages via NETLINK v0.30.
    [    1.617340] nf_conntrack version 0.5.0 (3936 buckets, 15744 max)
    [    1.623931] ctnetlink v0.93: registering with nfnetlink.
    [    1.629730] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    1.635437] TCP cubic registered
    [    1.638793] Initializing XFRM netlink socket
    [    1.643463] NET: Registered protocol family 10
    [    1.649017] Mobile IPv6
    [    1.651611] ip6_tables: (C) 2000-2006 Netfilter Core Team
    [    1.657592] IPv6 over IPv4 tunneling driver
    [    1.664154] NET: Registered protocol family 17
    [    1.668823] can: controller area network core (rev 20090105 abi 8)
    [    1.675476] NET: Registered protocol family 29
    [    1.680114] can: raw protocol (rev 20090105)
    [    1.684600] can: broadcast manager protocol (rev 20090105 t)
    [    1.690551] Registering the dns_resolver key type
    [    1.695556] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    1.703552] ThumbEE CPU extension supported.
    [    1.708068] mux: Failed to setup hwmod io irq -22
    [    1.713928] Power Management for AM33XX family
    [    1.718841] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    1.725524] Copied the M3 firmware to UMEM
    [    1.729858] Unable to read CM3 firmware version
    [    1.738891] clock: disabling unused clocks to save power
    [    1.750457] Detected MACID=c4:ed:ba:8a:59:77
    [    1.758239] rtc-ds1307 1-0068: setting system clock to 2000-01-01 00:01:21 UTC (946684881)
    [    1.771179] net eth0: CPSW phy found : id is : 0x143bc31
    [    1.778808] net eth0: CPSW phy found : id is : 0x143bc31
    [    1.793121] ADDRCONF(NETDEV_UP): eth0: link is not ready
    [    3.764404] PHY: 0:01 - Link is Up - 0/Half
    [    3.773864] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
    [    3.784179] PHY: 0:01 - Link is Down
    [    3.793975] Sending DHCP requests .
    [    4.784454] PHY: 0:01 - Link is Up - 100/Full
    [    6.453826] ., OK
    [    6.474273] IP-Config: Got DHCP answer from 192.168.6.168, my address is 192.168.6.204
    [    6.482757] IP-Config: Complete:
    [    6.486145]      device=eth0, addr=192.168.6.204, mask=255.255.255.0, gw=192.168.6.1,
    [    6.494079]      host=192.168.6.204, domain=sgsrv01.sensegrid.cn, nis-domain=(none),
    [    6.502166]      bootserver=192.168.6.168, rootserver=192.168.6.163, rootpath=
    [    6.510345] Waiting 3sec before mounting root device...
    [    9.549377] VFS: Mounted root (nfs filesystem) on device 0:15.
    [    9.556274] devtmpfs: mounted
    [    9.559814] Freeing init memory: 244K
    [    9.816284] systemd[1]: systemd 37 running in system mode. (+PAM +LIBWRAP -AUDIT -SELINUX +SYSVINIT -LIBCRYPTSETUP; angstrom)
    
    Welcome to The 脜ngstr枚m Distribution!
    
    [    9.856323] systemd[1]: Set hostname to <MPU-001>.
    Starting Runtime Directory...
    Starting Media Directory...
    Starting Remount API VFS...
    Starting Lock Directory...
    Starting Debug File System...
    Starting Security File System...
    Started Apply Kernel Variables                                          [  OK  ]
    Starting POSIX Message Queue File System...
    Started Load Kernel Modules                                             [  OK  ]
    Started Configuration File System                                       [  OK  ]
    Started FUSE Control File System                                        [  OK  ]
    Started Set Up Additional Binary Formats                                [  OK  ]
    Started Huge Pages File System                                          [  OK  ]
    Starting File System Check on Root Device...
    Starting udev Coldplug all Devices...
    Starting udev Kernel Device Manager...
    Starting Syslog Kernel Log Buffer Bridge...
    Started Syslog Kernel Log Buffer Bridge                                 [  OK  ]
    Started Runtime Directory                                               [  OK  ]
    Started Media Directory                                                 [  OK  ]
    Started Remount API VFS                                                 [  OK  ]
    [   10.714660] udevd[627]: starting version 175
    Started udev Kernel Device Manager                                      [  OK  ]
    Started Lock Directory                                                  [  OK  ]
    Started Debug File System                                               [  OK  ]
    Started Security File System                                            [  OK  ]
    Started POSIX Message Queue File System                                 [  OK  ]
    Started File System Check on Root Device                                [  OK  ]
    Starting Remount Root FS...
    Starting STDOUT Syslog Bridge...
    Started STDOUT Syslog Bridge                                            [  OK  ]
    Started Remount Root FS                                                 [  OK  ]
    Started Opkg first boot configure                                       [  OK  ]
    Starting /tmp...
    Started Machine ID first boot configure                                 [  OK  ]
    Started /tmp                                                            [  OK  ]
    Starting Recreate Volatile Files and Directories...
    Starting Load Random Seed...
    Started Load Random Seed                                                [  OK  ]
    Started Recreate Volatile Files and Directories                         [  OK  ]
    Starting System Logging Service...
    Started SSH Key Generation                                              [  OK  ]
    Starting D-Bus System Message Bus...
    Starting Permit User Sessions...
    Starting Login Service...
    Starting Avahi mDNS/DNS-SD Stack...
    Stopping Syslog Kernel Log Buffer Bridge...
    Stopped Syslog Kernel Log Buffer Bridge                                 [  OK  ]
    Started System Logging Service                                          [  OK  ]
    Started Permit User Sessions                                            [  OK  ]
    Started D-Bus System Message Bus                                        [  OK  ]
    Started Avahi mDNS/DNS-SD Stack                                         [  OK  ]
    Started Login Service                                                   [  OK  ]
    Started udev Coldplug all Devices                                       [  OK  ]
    Starting Boot Status Update Daemon...
    Started Boot Status Update Daemon                                       [  OK  ]
    Starting Watchdog Timer Daemon...
    Starting Telnetd Daemon...
    Started Telnetd Daemon                                                  [  OK  ]
    Started Watchdog Timer Daemon                                           [  OK  ]
    Starting App...
    Failed to start App                                                     [FAILED]
    See 'systemctl status app.service' for details.
    Starting Serial Getty on ttyO0...
    Started Serial Getty on ttyO0                                           [  OK  ]
    
    .---O---.                                           
    |       |                  .-.           o o        
    |   |   |-----.-----.-----.| |   .----..-----.-----.
    |       |     | __  |  ---'| '--.|  .-'|     |     |
    |   |   |  |  |     |---  ||  --'|  |  |  '  | | | |
    '---'---'--'--'--.  |-----''----''--'  '-----'-'-'-'
                    -'  |
                    '---'
    
    The Angstrom Distribution MPU-001 ttyO0
    
    Angstrom v2012.01-core - Kernel 3.2.0
    
    MPU-001 login: root
    Password: 
    Last login: Sat Jan  1 08:00:43 HKT 2000 on ttyO0
    root@MPU-001:~# cat /proc/mtd 
    dev:    size   erasesize  name
    mtd0: 00080000 00001000 "SPL/MLO(Golden,RO)"
    mtd1: 00080000 00001000 "U-Boot (Golden,RO)"
    mtd2: 00400000 00001000 "Kernel (Golden,RO)"
    mtd3: 00080000 00001000 "U-Boot (Bank-A)"
    mtd4: 00080000 00001000 "U-Boot (Bank-B)"
    mtd5: 00080000 00001000 "U-Boot Env (Bank-A)"
    mtd6: 00080000 00001000 "U-Boot Env (Bank-B)"
    mtd7: 00400000 00001000 "Kernel (Bank-A)"
    mtd8: 00400000 00001000 "Kernel (Bank-B)"
    mtd9: 00100000 00001000 "App Data"
    root@MPU-001:~# 
    root@MPU-001:~# 

  • Hi,

    Have you changed your SYSBOOT[15:14] configuration for 19.2MHz (both pins should be pulled low)?

  • Captured for the above log files:

    Correct NAND flash detect info(24MHz)

    ----------------------------------------------------------------

    [ 1.238647] omap2-nand driver initializing
    [ 1.243438] NAND device: Manufacturer ID: 0x2c, Chip ID: 0xcc (Micron NAND 512MiB 3,3V 16-bit)
    [ 1.252807] Creating 2 MTD partitions on "omap2-nand.0":
    [ 1.258453] 0x000000000000-0x000010000000 : "UBIFS (Bank-A)"
    [ 1.373046] 0x000010000000-0x000020000000 : "UBIFS (Bank-B)"

    Wrong NAND flash detect info(19.2MHz)

    ----------------------------------------------------------------

    [ 1.227661] omap2-nand driver initializing
    [ 1.232238] nand_get_flash_type: second ID read did not match 90,d5 against 56,00
    [ 1.240112] No NAND device found
    [ 1.243652] nand_get_flash_type: second ID read did not match 90,d5 against 56,00
    [ 1.251434] No NAND device found

  • The u-boot change is not that simple. The calculation for the M/N/etc. values will not work out correctly. It does work for 24/25/26MHz. I have attached a file that has the M/N/etc. values you should hard code in u-boot.

    Steve K.

  • Yes, of course. U-boot and Linux can boot smoothly. And Linux display correct clock info during boot-up:

    [ 0.000000] OMAP clockevent source: GPTIMER2 at 19200000 Hz
    [ 0.000000] OMAP clocksource: GPTIMER1 at 32768 Hz
    [ 0.000000] sched_clock: 32 bits at 32kHz, resolution 30517ns, wraps every 131071999ms

  • Thanks for the reply. AM3352D600 is OPP50 or OPP100? THankyou

  • OPP100.

    Steve K.

  • Thank you, Steve. It works!