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.

nand flash booting using am335x

Other Parts Discussed in Thread: AM3517, AM3354

Hi,

I am using Micron MT29F8G08ABABAWP NAND flash with our customized am335x platform. I have changed some couple of changes and not yet got resolved.

Please let us know what are the changes need to be done for my NAND chip. Also please suggest me how to load all the MLO, u-boot, uImage, ubifs.img to NAND.

Thanks

 

  • Hi,

    What OS are yo trying to boot?

    For Sitara SDK, you can refer to the following links:
    processors.wiki.ti.com/.../AM335x_NAND_Driver%27s_Guide
    processors.wiki.ti.com/.../AM335x_U-Boot_User%27s_Guide

    Best Regards,
    Yordan
  • Hi,

    I am taking the source from TI SDK6 version and using Linux 3.2 kernel version & "u-boot-2013.01.01-psp06.00.00.00" bootloader

    Thanks
  • Hi, Yordan,

    My nand flash is detected, aand flashed the MLO image to nand portion as per below commands. when i treid to boot from NAND nothing is booting from NAND. always printing cccccccc

    Please suggest me.

    U-Boot# fatload mmc 0 82000000 MLO

    reading MLO

    101721 bytes read in 13 ms (7.5 MiB/s)

    U-Boot# nandecc hw 2

    Unknown command 'nandecc' - try 'help'

    U-Boot# nand erase 0 200000

     

    NAND erase: device 0 offset 0x0, size 0x200000

    Erasing at 0x1c0000 -- 100% complete.

    OK

    U-Boot# nand write 82000000 0 20000

     

    NAND write: device 0 offset 0x0, size 0x20000

     131072 bytes written: OK

    U-Boot# nand dump 0

    Page 00000000 dump:

            40 00 00 00 0c 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 43 48 53 45  54 54 49 4e 47 53 00 00

            ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

            ff ff ff ff ff ff ff ff  ff ff ff ff ff ff ff ff

            c1 c0 c0 c0 00 01 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00

            51 8b 01 00 00 04 2f 40  14 00 00 ea 14 f0 9f e5

            14 f0 9f e5 14 f0 9f e5  14 f0 9f e5 14 f0 9f e5

            14 f0 9f e5 14 f0 9f e5  20 04 2f 40 24 04 2f 40

            28 04 2f 40 2c 04 2f 40  30 04 2f 40 34 04 2f 40

            38 04 2f 40 78 56 34 12  00 00 80 80 00 fc d0 3f

            38 7c 01 00 bc 2c d4 3f  38 7c 01 00 de c0 ad 0b

            80 03 00 eb 00 00 0f e1  1f 00 c0 e3 d3 00 80 e3

            00 f0 29 e1 10 0f 11 ee  02 0a c0 e3 10 0f 01 ee

            68 00 9f e5 10 0f 0c ee  09 00 00 eb 16 00 00 eb

            f6 03 00 eb 15 0f 07 ee  9a 0f 07 ee 95 0f 07 ee

            48 00 9f e5 09 00 80 e0  10 0f 0c ee 1e ff 2f e1

            1e ff 2f e1 00 00 a0 e3  17 0f 08 ee 15 0f 07 ee

            d5 0f 07 ee 9a 0f 07 ee  95 0f 07 ee 10 0f 11 ee

            02 0a c0 e3 07 00 c0 e3  02 00 80 e3 02 0b 80 e3

            01 0a 80 e3 10 0f 01 ee  0e f0 a0 e1 0e 03 00 ea

            00 04 2f 40 00 f0 20 e3  80 30 9f e5 30 40 2d e9

            00 20 93 e5 88 10 92 e5  00 20 93 e5 2c 40 92 e5

            00 20 93 e5 a8 c0 92 e5  00 20 93 e5 04 50 a0 e3

            88 50 82 e5 00 50 93 e5  50 20 9f e5 20 50 95 e5

            01 0c 55 e3 fa ff ff 1a  a4 39 a0 e1 83 39 a0 e1

            17 30 83 e3 00 34 83 e1  00 40 92 e5 1f 00 cc e3

            01 00 80 e3 2c 30 84 e5  00 30 92 e5 07 10 81 e3

            a8 00 83 e5 00 30 92 e5  88 10 83 e5 00 30 92 e5

            20 30 93 e5 01 00 53 e3  fb ff ff 1a 30 80 bd e8

            c0 80 30 40 1c 31 9f e5  f0 40 2d e9 00 20 93 e5

            90 10 92 e5 00 20 93 e5  68 20 92 e5 00 c0 93 e5

            80 50 9c e5 00 c0 93 e5  84 40 9c e5 00 c0 93 e5

            d8 c0 9c e5 00 60 93 e5  04 70 a0 e3 90 70 86 e5

            03 60 a0 e1 00 70 96 e5  d8 30 9f e5 5c 70 97 e5

            01 0c 57 e3 fa ff ff 1a  a2 29 a0 e1 32 00 50 e3

            82 29 a0 e1 17 00 00 1a  32 2c 82 e3 17 20 82 e3

            00 00 93 e5 1f 50 c5 e3  01 50 85 e3 68 20 80 e5

            00 20 93 e5 1f 40 c4 e3  01 40 84 e3 80 50 82 e5

            00 20 93 e5 1f c0 cc e3  01 c0 8c e3 84 40 82 e5

            00 20 93 e5 07 10 81 e3  d8 c0 82 e5 00 20 93 e5

            90 10 82 e5 00 20 93 e5  5c 20 92 e5 01 00 52 e3

            fb ff ff 1a f0 80 bd e8  fa 2b 82 e3 17 20 82 e3

            00 00 93 e5 1f 50 c5 e3  0a 50 85 e3 68 20 80 e5

            00 20 93 e5 1f 40 c4 e3  08 40 84 e3 80 50 82 e5

            00 20 93 e5 1f c0 cc e3  04 c0 8c e3 84 40 82 e5

            00 20 93 e5 07 10 81 e3  d8 c0 82 e5 00 20 93 e5

            90 10 82 e5 00 20 93 e5  5c 20 92 e5 01 00 52 e3

            fb ff ff 1a f0 80 bd e8  c0 80 30 40 84 30 9f e5

            30 40 2d e9 00 20 93 e5  94 10 92 e5 00 20 93 e5

            40 40 92 e5 00 20 93 e5  a0 c0 92 e5 07 10 c1 e3

            04 10 81 e3 00 20 93 e5  94 10 82 e5 00 50 93 e5

            50 20 9f e5 34 50 95 e5  01 0c 15 e3 fa ff ff 0a

            a4 39 a0 e1 83 39 a0 e1  17 30 83 e3 00 34 83 e1

            00 40 92 e5 1f 00 cc e3  01 00 80 e3 40 30 84 e5

            00 30 92 e5 07 10 81 e3  a0 00 83 e5 00 30 92 e5

            94 10 83 e5 00 30 92 e5  34 30 93 e5 01 00 13 e3

            fb ff ff 0a 30 80 bd e8  c0 80 30 40 24 30 9f e5

            02 20 a0 e3 00 10 93 e5  d0 20 81 e5 00 10 93 e5

            28 20 81 e5 00 20 93 e5  28 20 92 e5 02 00 52 e3

            fb ff ff 1a 1e ff 2f e1  c4 80 30 40 10 40 2d e9

            4b 0f a0 e3 5f ff ff eb  32 00 a0 e3 80 ff ff eb

            5c 33 9f e5 00 20 93 e5  8c 10 92 e5 00 20 93 e5

            9c c0 92 e5 00 20 93 e5  ac 00 92 e5 00 20 93 e5

            04 40 a0 e3 8c 40 82 e5  00 40 93 e5 30 23 9f e5

            70 40 94 e5 01 0c 54 e3  fa ff ff 1a ac 39 a0 e1

            83 39 a0 e1 0f 39 83 e3  17 30 83 e3 00 c0 92 e5

            7f 00 c0 e3 05 00 80 e3  9c 30 8c e5 00 30 92 e5

            07 10 81 e3 ac 00 83 e5  00 30 92 e5 8c 10 83 e5

            00 30 92 e5 70 30 93 e5  01 00 53 e3 fb ff ff 1a

            dc 32 9f e5 03 2c a0 e3  00 30 93 e5 7c 20 83 e5

            d0 32 9f e5 02 10 a0 e3  00 20 93 e5 e0 10 82 e5

            03 10 a0 e1 00 20 91 e5  b8 32 9f e5 e0 20 92 e5

            02 00 52 e3 fa ff ff 1a  00 10 93 e5 60 20 81 e5

            03 20 a0 e1 00 30 92 e5  60 30 93 e5 02 00 53 e3

            90 12 9f e5 fa ff ff 1a  00 20 91 e5 64 30 82 e5

            00 30 91 e5 64 20 93 e5  02 00 52 e3 fb ff ff 1a

            6c 32 9f e5 00 10 93 e5  0c 20 81 e5 00 20 93 e5

            0c 20 92 e5 02 00 52 e3  fb ff ff 1a 54 32 9f e5

            00 10 93 e5 dc 20 81 e5  03 10 a0 e1 00 20 91 e5

            40 32 9f e5 dc 20 92 e5  02 00 52 e3 fa ff ff 1a

            00 10 93 e5 20 21 81 e5  00 20 93 e5 20 21 92 e5

            02 00 52 e3 fb ff ff 1a  14 32 9f e5 00 10 93 e5

            08 20 81 e5 03 20 a0 e1  00 30 92 e5 00 12 9f e5

            08 30 93 e5 02 00 53 e3  fa ff ff 1a f4 21 9f e5

            00 00 92 e5 0c 30 80 e5  00 00 92 e5 00 30 80 e5

            00 00 91 e5 00 30 80 e5  00 00 92 e5 08 30 80 e5

            00 00 92 e5 04 30 80 e5  00 00 91 e5 04 30 80 e5

            00 30 91 e5 04 30 93 e5  02 00 53 e3 fb ff ff 1a

            00 20 92 e5 80 30 82 e5  a8 31 9f e5 00 20 93 e5

            80 20 92 e5 02 00 52 e3  fb ff ff 1a 98 31 9f e5

            01 10 a0 e3 00 30 93 e5  08 10 83 e5 80 31 9f e5

            00 10 93 e5 b4 20 81 e5  00 20 93 e5 b4 20 92 e5

            02 00 52 e3 fb ff ff 1a  68 31 9f e5 00 10 93 e5

            30 20 81 e5 03 10 a0 e1  00 20 91 e5 54 31 9f e5

            30 20 92 e5 02 00 52 e3  fa ff ff 1a 00 10 93 e5

            40 20 81 e5 03 20 a0 e1  00 30 92 e5 40 30 93 e5

            02 00 53 e3 2c 11 9f e5  fa ff ff 1a 00 20 91 e5

            3c 30 82 e5 00 30 91 e5  3c 20 93 e5 02 00 52 e3

            fb ff ff 1a 08 31 9f e5  00 10 93 e5 b8 20 81 e5

            00 20 93 e5 b8 20 92 e5  02 00 52 e3 fb ff ff 1a

            f0 30 9f e5 00 10 93 e5  ac 20 81 e5 03 10 a0 e1

            00 20 91 e5 dc 30 9f e5  ac 20 92 e5 02 00 52 e3

            fa ff ff 1a 00 10 93 e5  b0 20 81 e5 03 20 a0 e1

            00 30 92 e5 b0 30 93 e5  02 00 53 e3 b4 10 9f e5

            fa ff ff 1a 00 20 91 e5  b4 30 82 e5 00 20 91 e5

            a0 30 9f e5 b4 20 92 e5  02 00 52 e3 fa ff ff 1a

            00 10 93 e5 48 20 81 e5  03 10 a0 e1 00 30 91 e5

            48 30 93 e5 02 00 53 e3  78 20 9f e5 fa ff ff 1a

            00 10 92 e5 14 30 81 e5  00 10 92 e5 64 30 9f e5

            14 10 91 e5 03 08 11 e3  fa ff ff 1a 00 20 93 e5

            02 10 a0 e3 4c 10 82 e5  00 20 93 e5 4c 20 92 e5

            02 00 52 e3 fb ff ff 1a  40 30 9f e5 00 10 93 e5

            00 20 81 e5 00 20 93 e5  00 20 92 e5 02 00 52 e3

            fb ff ff 1a 1c 30 9f e5  00 10 93 e5 1c 20 81 e5

            00 20 93 e5 1c 20 92 e5  02 00 52 e3 fb ff ff 1a

            10 80 bd e8 c0 80 30 40  c4 80 30 40 b8 80 30 40

            bc 80 30 40 f8 40 2d e9  00 40 a0 e1 01 50 a0 e1

            02 60 a0 e1 03 70 a0 e1  00 30 a0 e3 fa 0f a0 e3

            18 30 81 e5 d0 01 00 eb  00 30 94 e5 00 30 85 e5

            04 30 94 e5 04 30 85 e5  08 30 94 e5 08 30 85 e5

            0c 30 94 e5 0c 30 85 e5  10 30 94 e5 10 30 85 e5

            14 30 94 e5 56 6c e5 e7  0f 70 07 e2 40 60 86 e3

            14 30 85 e5 07 74 86 e1  7d 0e a0 e3 18 70 85 e5

            f8 40 bd e8 bc 01 00 ea  70 40 2d e9 05 32 a0 e3

            60 50 9f e5 00 30 85 e5  00 30 95 e5 08 20 a0 e3

            10 20 83 e5 00 30 95 e5  01 2c a0 e3 18 20 83 e5

            00 30 95 e5 02 2c a0 e3  1c 20 83 e5 00 30 95 e5

            12 20 a0 e3 50 20 83 e5  00 30 95 e5 00 40 a0 e3

            fa 0f a0 e3 78 40 83 e5  a7 01 00 eb 00 10 95 e5

            14 00 9f e5 02 23 a0 e3  60 10 81 e2 04 30 a0 e1

            70 40 bd e8 c6 ff ff ea  00 00 00 80 14 3f 30 40

            20 30 90 e5 00 00 53 e3  0e 00 00 0a 13 33 a0 e3

            0a 2b a0 e3 10 20 83 e5  20 20 90 e5 c8 20 83 e5

            08 10 90 e5 3c 20 9f e5  00 20 92 e5 10 11 82 e5

            08 20 90 e5 08 20 83 e5  0c 20 90 e5 10 20 83 e5

            0c 20 90 e5 14 20 83 e5  0c 20 90 e5 13 33 a0 e3

            10 20 83 e5 0c 20 90 e5  14 20 83 e5 08 20 90 e5

            08 20 83 e5 1e ff 2f e1  c8 80 30 40 10 20 90 e5

            13 33 a0 e3 18 20 83 e5  10 20 90 e5 1c 20 83 e5

            14 20 90 e5 20 20 83 e5  14 20 90 e5 24 20 83 e5

            18 20 90 e5 28 20 83 e5  18 20 90 e5 2c 20 83 e5

            1e ff 2f e1 2c 20 90 e5  13 33 a0 e3 e4 20 83 e5

            2c 20 90 e5 e8 20 83 e5  1e ff 2f e1 00 20 90 e5

            44 30 9f e5 1c 20 83 e5  0c 20 90 e5 28 20 83 e5

            10 20 90 e5 2c 20 83 e5  14 20 90 e5 50 20 83 e5

            20 20 90 e5 5c 20 83 e5  24 20 90 e5 60 20 83 e5

            28 20 90 e5 84 20 83 e5  34 20 90 e5 90 20 83 e5

            38 20 90 e5 94 20 83 e5  1e ff 2f e1 00 20 e1 44

            00 20 91 e5 40 30 9f e5  00 31 93 e7 c8 20 83 e5

            04 20 91 e5 dc 20 83 e5  08 20 91 e5 f0 20 83 e5

            0c 20 91 e5 fc 20 83 e5  10 20 91 e5 08 21 83 e5

            14 20 91 e5 20 21 83 e5  18 20 91 e5 34 21 83 e5

            1c 20 91 e5 38 21 83 e5  1e ff 2f e1 30 3f 30 40

            14 30 9f e5 08 04 83 e5  0c 04 83 e5 10 04 83 e5

            44 04 83 e5 48 04 83 e5  1e ff 2f e1 00 10 e1 44

            f0 44 2d e9 00 60 a0 e1  02 50 a0 e1 03 a0 a0 e1

            01 40 a0 e1 18 70 9d e5  6f fe ff eb 06 00 a0 e1

            49 fe ff eb 80 30 9f e5  0c 2e 93 e5 40 20 82 e3

            0c 2e 83 e5 0c 2e 93 e5  01 20 c2 e3 0c 2e 83 e5

            0c 2e 93 e5 01 20 82 e3  0c 2e 83 e5 0c 2e 93 e5

            20 00 12 e3 fc ff ff 0a  0a 00 a0 e1 b6 ff ff eb

            05 10 a0 e1 00 00 a0 e3  c8 ff ff eb 05 10 a0 e1

            01 00 a0 e3 c5 ff ff eb  04 00 a0 e1 d7 ff ff eb

            24 20 9f e5 1c 33 01 e3  01 10 a0 e3 07 00 a0 e1

            03 10 82 e7 a2 ff ff eb  07 00 a0 e1 92 ff ff eb

            07 00 a0 e1 f0 44 bd e8  74 ff ff ea 00 00 e1 44

            1c 30 9f e5 00 00 50 e3  20 26 93 e5 06 27 c2 13

            03 20 82 03 03 20 c2 13  06 27 82 13 20 26 83 e5

            1e ff 2f e1 00 00 e1 44  1c 30 9f e5 00 00 50 e3

            28 26 93 e5 06 27 c2 13  03 20 82 03 03 20 c2 13

            06 27 82 13 28 26 83 e5  1e ff 2f e1 00 00 e1 44

            08 40 2d e9 20 10 9f e5  20 20 9f e5 20 00 9f e5

            b3 33 00 eb 1c 10 9f e5  1c 20 9f e5 1c 00 9f e5

            af 33 00 eb 00 00 a0 e3  08 80 bd e8 14 81 30 40

            00 10 40 47 24 81 30 40  e4 80 30 40 00 18 40 47

            f4 80 30 40 00 00 50 e3  04 00 00 1a 1e ff 2f e1

            11 33 83 e2 02 20 50 e5  e1 38 83 e2 00 20 83 e5

            f4 30 d0 e0 01 00 73 e3  f8 ff ff 1a 1e ff 2f e1

            70 40 2d e9 02 50 d0 e5  01 60 d0 e5 b8 c1 9f e5

            05 58 a0 e1 06 54 85 e1  00 60 d0 e5 00 40 9c e5

            06 50 85 e1 03 60 d0 e5  06 5c 85 e1 00 54 84 e5

            06 50 d0 e5 05 60 d0 e5  00 40 9c e5 05 58 a0 e1

            06 54 85 e1 04 60 d0 e5  06 50 85 e1 07 60 d0 e5

            06 5c 85 e1 0d 00 51 e3  04 54 84 e5 33 00 00 9a

            0a 50 d0 e5 09 60 d0 e5  00 40 9c e5 05 58 a0 e1

            06 54 85 e1 08 60 d0 e5  06 50 85 e1 0b 60 d0 e5

            06 5c 85 e1 08 54 84 e5  0e 50 d0 e5 0d 60 d0 e5

            00 40 9c e5 05 58 a0 e1  06 54 85 e1 0c 60 d0 e5

            06 50 85 e1 0f 60 d0 e5  06 5c 85 e1 1a 00 51 e3

            0c 54 84 e5 1d 00 00 9a  12 40 d0 e5 11 50 d0 e5

            00 10 9c e5 04 48 a0 e1  05 44 84 e1 10 50 d0 e5

            05 40 84 e1 13 50 d0 e5  05 4c 84 e1 10 44 81 e5

            16 40 d0 e5 15 50 d0 e5  00 10 9c e5 04 48 a0 e1

            05 44 84 e1 14 50 d0 e5  05 40 84 e1 17 50 d0 e5

            05 4c 84 e1 14 44 81 e5  00 10 9c e5 1a c0 d0 e5

            19 40 d0 e5 0c c8 a0 e1  04 c4 8c e1 18 40 d0 e5

            1b 00 d0 e5 04 c0 8c e1  00 0c 8c e1 18 04 81 e5

            94 10 9f e5 00 00 91 e5  18 c4 90 e5 01 c8 8c e3

            00 00 91 e5 18 c4 80 e5  01 00 a0 e1 00 c0 90 e5

            74 10 9f e5 18 c0 9c e5  01 00 1c e3 fa ff ff 0a

            00 00 91 e5 18 c0 90 e5  01 c0 8c e3 00 00 91 e5

            18 c0 80 e5 00 08 90 e5  01 0c 10 e3 10 00 00 0a

            00 00 91 e5 00 08 90 e5  1f 00 00 e2 00 00 82 e5

            00 00 a0 e3 03 00 00 ea  00 40 91 e5 22 ce 8c e2

            0c c1 94 e7 04 c0 83 e4  00 40 92 e5 00 c0 a0 e1

            01 00 80 e2 04 00 5c e1  f6 ff ff 3a 00 00 a0 e3

            70 80 bd e8 00 00 e0 e3  70 80 bd e8 04 00 00 80

            03 10 00 e2 7f 16 81 e3  0f 18 81 e3 2c 30 9f e5

            00 20 93 e5 20 10 82 e5  1c 10 92 e5 01 10 81 e3

            00 20 93 e5 1c 10 82 e5  80 20 92 e5 01 20 c2 e3

            00 30 93 e5 00 00 a0 e3  80 20 83 e5 1e ff 2f e1

            04 00 00 80 24 30 9f e5  00 20 93 e5 10 10 92 e5

            02 10 81 e3 00 20 93 e5  10 10 82 e5 00 20 93 e5

            14 20 92 e5 01 00 12 e3  fb ff ff 0a 1e ff 2f e1

            04 00 00 80 08 20 9f e5  08 30 9f e5 00 20 83 e5

            ef ff ff ea 00 00 08 48  04 00 00 80 0c d0 9f e5

            07 d0 cd e3 00 50 2d e9  ea 02 00 eb 00 90 bd e8

            80 df 30 40 f8 40 2d e9  00 40 a0 e1 01 60 a0 e1

            10 5f 30 ee 07 50 05 e2  03 00 52 e3 04 50 85 e2

            01 30 a0 e3 13 55 a0 e1  09 00 00 0a 04 00 52 e3

            00 30 65 02 00 40 03 00  1d 00 00 1a 01 00 00 ea

            3e 4f 07 ee 05 40 84 e0  06 00 54 e1 fb ff ff 3a

            17 00 00 ea 01 70 45 e2  00 00 17 e1 07 00 00 0a

            04 20 a0 e1 54 00 9f e5  54 10 9f e5 01 40 44 e2

            3d 05 00 eb 05 40 84 e0  00 30 65 e2 04 40 03 e0

            06 00 17 e1 08 00 00 0a  06 20 a0 e1 34 00 9f e5

            2c 10 9f e5 34 05 00 eb  00 30 65 e2 03 60 06 e0

            01 00 00 ea 36 4f 07 ee  05 40 84 e0 06 00 54 e1

            fb ff ff 3a 00 30 a0 e3  9a 3f 07 ee f8 80 bd e8

    OOB:

            ff ff c8 b0 e8 12 b2 4a

            63 70 83 0f c6 76 57 00

            0c 78 2c 51 7d 05 41 e4

            0d 11 d9 5a ac 00 e6 2c

            2d 1f e2 60 71 89 6f 8f

            31 89 fe 00 81 01 44 31

            ea b7 62 2c 4e 16 ea 24

            3a 00 92 65 86 24 57 d7

            10 53 79 9f 7f 82 8e 00

            55 b4 a6 a0 c9 85 4c 9e

            5f 35 36 56 71 00 90 22

            be a4 05 16 ff 2a 60 e8

            d4 88 e4 00 91 f6 5c 98

            70 e1 ec 05 82 16 58 95

            b5 00 ff ff ff ff ff ff

            ff ff ff ff ff ff ff ff

     

    Thanks

     

  • Hi,

    The "CCCCC" in your debug console suggests that you've configured your sysboot pins for UART boot, not NAND.  Ceck your SYSBOOT configuration.

    If you want to boot from NAND, you should configure SYSBOOT settings as described here: http://processors.wiki.ti.com/index.php/AM335x_U-Boot_User%27s_Guide#NAND

    Best Regards,

    Yordan

  • Hi

    I am not using EVM, this is our customized board and designed 1GB NAND flash(mt29f8g08ababawp).  When I put the settings of sysboot for sdcard it is working, but NAND is not working.

    I have followed the below steps for NAND booting.

    • mmc rescan
    • nand erase 0x0 0x10000000
    • fatload mmc 0 0x81000000 MLO
    • cp.b 0x81000000 0x81020000 20000
    • cp.b 0x81000000 0x81040000 20000
    • cp.b 0x81000000 0x81060000 20000
    • fatload mmc 0 0x81080000 u-boot.img
    • fatload mmc 0 0x81280000 uImage
    • fatload mmc 0 0x81780000 ubi.img
    • nand write 0x81000000 0x0 0x2000000

    Please suggest me

     Thanks,

  • Please post the schematics of your NAND connections to GPMC. Also post SYSBOOT[15:0] values you use for NAND.

  • Hi Biser,

    Thanks for your response. Please find attached files.

    could you send the steps for porting all the MLO, u-Boot, uImage, rootfs images to NAND flash.

    Thanks

    SCHEMATIC _ NAND.pdf

    SCHEMATIC _ SYSBOOT.pdf

  • NAND schematic is OK. What is the SYSBOOT switch setting you use for NAND boot?

  • The other thing that I see is that your NAND is large page size - 4096 + 234 bytes. The AM335X ROM code will default to BCH16 ECC for this spare area. This means that BCH16 should be enabled and used for NAND flashing. See this wiki for details: http://processors.wiki.ti.com/index.php/Linux_Core_NAND_User%27s_Guide#ECC_schemes_support

  • Hi Biser,

    I am using the NAND boot pins as below picture.

    Bootmodeswitches.jpg

    Thanks

  • This will be correct if your DIP switches are routed and placed exactly as on the AM335X GP EVM.

  • Hi Biaser,

    I have already enabled "CONFIG_MTD_NAND_ECC_BCH" option in kernel. but "CONFIG_MTD_NAND_OMAP_BCH" option is not available in the existing menuconfig.

    Also some patches i have applied for u-boot patch (MLO, U-boot) section as per the link: lists.denx.de/.../145283.html

    Please let us know, it is required to add the above changes or not required??? please suggest me.

    Thanks
  • Hi,

    The CONFIG_MTD_NAND_OMAP_BCH could be added directly in the tisdk_am335x-evm_defconfig (or the defconfig you use) file, as listed bellow:
    CONFIG_MTD_NAND_OMAP_BCH=y
    Other configs that should be enabled for nand support are:
    CONFIG_MTD_NAND_ECC=y
    CONFIG_MTD_NAND=y
    CONFIG_MTD_NAND_OMAP2=y
    CONFIG_MTD_NAND_OMAP_BCH=y
    CONFIG_MTD_NAND_IDS=y

    Regarding the patch you reference, as I see it enables BCH16 and is tested NAND chip: MT29F16G08ABABAWP. I think it would be a good idea to try this patch.

    Also, just as a suggestion, when loading the images to your nand flash try using the other ECC scheme. For example nandecc hw 3.

    Hope this helps.

    Best Regards,
    Yordan
  • Hi,

    'nandecc' command is not working under my U-boot (TI SDK6). What should i do ?? any modifications required???Please help me

    U-Boot# nandecc hw 3
    Unknown command 'nandecc' - try 'help'

    under U-boot these are the NAND supported commands:-
    ---------------------------------------------
    U-Boot# nand -h
    nand - NAND sub-system

    Usage:
    nand info - show available NAND devices
    nand device [dev] - show or set current device
    nand read - addr off|partition size
    nand write - addr off|partition size
    read/write 'size' bytes starting at offset 'off'
    to/from memory address 'addr', skipping bad blocks.
    nand read.raw - addr off|partition [count]
    nand write.raw - addr off|partition [count]
    Use read.raw/write.raw to avoid ECC and access the flash as-is.
    nand erase[.spread] [clean] off size - erase 'size' bytes from offset 'off'
    With '.spread', erase enough for given file size, otherwise,
    'size' includes skipped bad blocks.
    nand erase.part [clean] partition - erase entire mtd partition'
    nand erase.chip [clean] - erase entire chip'
    nand bad - show bad blocks
    nand dump[.oob] off - dump page
    nand scrub [-y] off size | scrub.part partition | scrub.chip
    really clean NAND erasing bad blocks (UNSAFE)
    nand markbad off [...] - mark bad block(s) at offset (UNSAFE)
    nand biterr off - make a bit error at offset (UNSAFE)
    U-Boot#
    -----------------------------------------------

    Thanks
  • Hi,

    Try  changing

    #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH8_CODE_HW  to OMAP_ECC_BCH16_HW

    in include/configs/am335x_evm.h

    Best Regards,

    Yordan

  • Hi Yordan,

    still i am confusing with versions, what TI has given SDK6 i am referring, the below statement is not mentioned under the include/configs/am335x_evm.h path.

    #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH8_CODE_HW

    any new u-boot need to download for my customization. please suggest me

    Thanks

  • Hi,

    I don't have u-boot-2013.01.01-psp06.00.00.00 (since EZSDK6.0 is no longer available at ti download page: software-dl.ti.com/.../index_FDS.html). I could check the nand ecc settings in
    - U-Boot 2011.09: it has the nandecc command, see test on my AM3517 EVM:
    AM3517_EVM # nandecc hw 3
    HW ECC [X-loader/U-boot layout] selected
    AM3517_EVM #

    - u-boot-2013.10-ti2013.12.01(SDK7.0):
    Here configuration is done via
    #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH8_CODE_HW
    in include/configs/am335x_evm.h

    - u-boot-2014.07-g7e537bf (SDK8.0)
    Same as above; ECC configuration done via:
    #define CONFIG_NAND_OMAP_ECCSCHEME OMAP_ECC_BCH8_CODE_HW
    in include/configs/am335x_evm.h

    Unless you've modified your u-boot sources, you should have either the hardcoded setting OMAP_ECC_BCH8_CODE_HW in am335x_evm.h or u-boot command nandecc.

    So you could either use the older or newer u-boot version in order to load your kernel & FS images.

    Hope this helps.

    Best Regards,
    Yordan
  • Hi,

    After changed the bootloader and changed the NAND partitions under the kernel (board-am335xevm.c). i have flashed all the files under NAND. but it is not booting NAND by default.

    [    1.256744] omap2-nand driver initializing

    [    1.261291] ONFI flash detected

    [    1.264678] ONFI param page 0 valid

    [    1.268310] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron MT29F8G08ABABAWP)

    [    1.276855] Creating 8 MTD partitions on "omap2-nand.0":

    [    1.282409] 0x000000000000-0x000000080000 : "SPL"

    [    1.288696] 0x000000080000-0x000000100000 : "SPL.backup1"

    [    1.295501] 0x000000100000-0x000000180000 : "SPL.backup2"

    [    1.302215] 0x000000180000-0x000000200000 : "SPL.backup3"

    [    1.308929] 0x000000200000-0x000000380000 : "U-Boot"

    [    1.315307] 0x000000380000-0x000000400000 : "U-Boot Env"

    [    1.321929] 0x000000400000-0x000001000000 : "Kernel"

    [    1.329162] 0x000001000000-0x000040000000 : "File System"

    [    1.419250] OneNAND driver initializing

    [    1.473419] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6

    [    1.479858] davinci_mdio davinci_mdio.0: no live phy, scanning all

    [    1.486633] davinci_mdio: probe of davinci_mdio.0 failed with error -5

     

    Please suggest me.

     

    Thanks,

  • Hi,

    Still it is not resolved my issue. Could you please let us know the issue.

    AM335X supports 1GB NAND or not ?? Please let us know 'MT29F8G08ABABAWP' chip supports AM335x ???

    Thanks,
  • Your NAND flash MT29F8G08ABABAWP has 4096+224 bytes page size. AM335X ROM code uses BCH16 ECC for this page size. Make sure your NAND is flashed with BCH16.

  • Hi Biser,

    Please find attached schematic using MT29F8G08ABABAWP with our am335x platform.

    In our software, Please find my settings in our nand pin mux settings in u-boot & linux as per below:

    UNDER LINUX (board-am335xevm.c)

    /* Pin mux for nand flash module */

    static struct pinmux_config nand_pin_mux[] = {

    {"gpmc_ad0.gpmc_ad0",  OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},

    {"gpmc_ad1.gpmc_ad1",  OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},

    {"gpmc_ad2.gpmc_ad2",  OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},

    {"gpmc_ad3.gpmc_ad3",  OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},

    {"gpmc_ad4.gpmc_ad4",  OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},

    {"gpmc_ad5.gpmc_ad5",  OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},

    {"gpmc_ad6.gpmc_ad6",  OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},

    {"gpmc_ad7.gpmc_ad7",  OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},

    {"gpmc_wait0.gpmc_wait0", OMAP_MUX_MODE0 | AM33XX_PIN_INPUT_PULLUP},

    {"gpmc_wpn.gpmc_wpn",  OMAP_MUX_MODE7 | AM33XX_PIN_INPUT_PULLUP},

    {"gpmc_csn0.gpmc_csn0",  OMAP_MUX_MODE0 | AM33XX_PULL_DISA},

    {"gpmc_advn_ale.gpmc_advn_ale",  OMAP_MUX_MODE0 | AM33XX_PULL_DISA},

    {"gpmc_oen_ren.gpmc_oen_ren", OMAP_MUX_MODE0 | AM33XX_PULL_DISA},

    {"gpmc_wen.gpmc_wen",     OMAP_MUX_MODE0 | AM33XX_PULL_DISA},

    {"gpmc_ben0_cle.gpmc_ben0_cle", OMAP_MUX_MODE0 | AM33XX_PULL_DISA},

    {NULL, 0},

    };

    UNDER U-BOOT (home/ti-sdk-am335x-evm-06.00/u-boot-2013.01.01-psp06.00.00.00/board/ti/am335x/mux.cmux.c)

    static struct module_pin_mux nand_pin_mux[] = {

    {OFFSET(gpmc_ad0), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* NAND AD0 */

    {OFFSET(gpmc_ad1), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* NAND AD1 */

    {OFFSET(gpmc_ad2), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* NAND AD2 */

    {OFFSET(gpmc_ad3), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* NAND AD3 */

    {OFFSET(gpmc_ad4), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* NAND AD4 */

    {OFFSET(gpmc_ad5), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* NAND AD5 */

    {OFFSET(gpmc_ad6), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* NAND AD6 */

    {OFFSET(gpmc_ad7), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* NAND AD7 */

    {OFFSET(gpmc_wait0), (MODE(0) | RXACTIVE | PULLUP_EN)}, /* NAND WAIT */

    {OFFSET(gpmc_wpn), (MODE(0) | PULLUP_EN | RXACTIVE)}, /* NAND_WPN */

    {OFFSET(gpmc_csn0), (MODE(0) | PULLUDEN)}, /* NAND_CS0 */

    {OFFSET(gpmc_advn_ale), (MODE(0) | PULLUDEN)}, /* NAND_ADV_ALE */

    {OFFSET(gpmc_oen_ren), (MODE(0) | PULLUDEN)}, /* NAND_OE */

    {OFFSET(gpmc_wen), (MODE(0) | PULLUDEN)}, /* NAND_WEN */

    {OFFSET(gpmc_be0n_cle), (MODE(0) | PULLUDEN)}, /* NAND_BE_CLE */

    {-1},

    };

    Please let us know what are the changes are required for BCH16.

    Thanks

    nand-schematic-am335x.pdf

  • Hi Lofna,

    You can find the patches for support of BCH16 in u-boot here (not sure in which mainline they were integrated):
    lists.denx.de/.../145283.html

    For kernel modifications you can find patches in the following thread:
    e2e.ti.com/.../996841 , i.e. :
    "I hope you are using following patch series for BCH16 from mainline kernel.

    (1) lists.infradead.org/.../047530.html

    (2) lists.infradead.org/.../047538.html

    (3) lists.infradead.org/.../047562.html

    (Above series need to be applied in given order on mainline kernel)"

    Have in mind that if you are using SDK6.0 (kernel 3.2) kernel modifications (described in above patches) will take a lot of efforts... it may be a good idea to switch to a newer kernel (3.12 - SDK7.0 or 3.14 - SDK8.0).

    Best Regards,
    Yordan

  • Hi Biser,

    First i would like to understand my hardware schematic is correct or not? If there is more changes in my hardware design then i will apply the above patches which have sent by Yordan.

    Thanks

  • Hi Yordan,

    It is painful job to upgrade my existing Linux 3.2 to 3.14. because my file system some of the modules and libraries are compatible with Linux 3.2

    If i am going for this configuration for NAND, others also it may effect. i will go with existing Linux 3.2 patches itself.

    I have already applied your patch under u-boot. and changed the ecc memory layout for 1GB in kernel board file as well. Please find the log for your reference and let us know.

    Thanks

    bootingLog.txt
    U-Boot SPL 2013.01.01 (Feb 27 2015 - 17:38:21)
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0 
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0 
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401800 using PIO, IRQ 0
    OMAP SD/MMC: 0
    reading u-boot.img
    reading u-boot.img
    
    
    U-Boot 2013.01.01 (Feb 27 2015 - 17:38:21)
    
    I2C:   ready
    DRAM:  512 MiB
    WARNING: Caches not enabled
    Incorrect magic number (0xffffffff) in EEPROM
    Could not get board ID.
    NAND:  ####01---NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Toshiba <NULL>)
    ####02---NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron NAND 1GiB 3,3V Micron 8-bit)
    1024 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - bad CRC, using default environment
    
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0 
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0 
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401800 using PIO, IRQ 0
    Net:   <ethaddr> not set. Validating first E-fuse MAC
    PHY reset timed out
    cpsw, usb_ether
    Hit any key to stop autoboot:  0 
    mmc0 is current device
    SD/MMC found on device 0
    reading uEnv.txt
    297 bytes read in 3 ms (96.7 KiB/s)
    Loaded environment from uEnv.txt
    Importing environment from mmc ...
    reading uImage
    3215968 bytes read in 334 ms (9.2 MiB/s)
    Booting from mmc ...
    ## Booting kernel from Legacy Image at 80007fc0 ...
       Image Name:   Linux-3.2.0
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3215904 Bytes = 3.1 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       XIP Kernel Image ... OK
    OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 3.2.0 (root@ubuntu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #197 Tue Mar 17 18:57:18 IST 2015
    [    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 ES1.0 (sgx neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=/dev/mmcblk0p2 ro rootfstype=ext3 rootwait ip=none
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 512MB = 512MB total
    [    0.000000] Memory: 512836k/512836k available, 11452k 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 : 0xe0800000 - 0xff000000   ( 488 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc05a0000   (5728 kB)
    [    0.000000]       .init : 0xc05a0000 - 0xc0638000   ( 608 kB)
    [    0.000000]       .data : 0xc0638000 - 0xc0694318   ( 369 kB)
    [    0.000000]        .bss : 0xc069433c - 0xc06c0854   ( 178 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 24000000 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... 996.14 BogoMIPS (lpj=4980736)
    [    0.089233] pid_max: default: 32768 minimum: 301
    [    0.089355] Security Framework initialized
    [    0.089416] Mount-cache hash table entries: 512
    [    0.089752] CPU: Testing write buffer coherency: ok
    [    0.090423] devtmpfs: initialized
    [    0.108886] omap_hwmod: gfx: failed to hardreset
    [    0.124664] omap_hwmod: pruss: failed to hardreset
    [    0.125762] print_constraints: dummy: 
    [    0.126068] NET: Registered protocol family 16
    [    0.127777] OMAP GPIO hardware version 0.1
    [    0.129791] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.131591]  omap_i2c.1: alias fck already exists
    [    0.132324]  omap2_mcspi.1: alias fck already exists
    [    0.132507]  omap2_mcspi.2: alias fck already exists
    [    0.132720]  edma.0: alias fck already exists
    [    0.132720]  edma.0: alias fck already exists
    [    0.132751]  edma.0: alias fck already exists
    [    0.151672] bio: create slab <bio-0> at 0
    [    0.153442] SCSI subsystem initialized
    [    0.154724] usbcore: registered new interface driver usbfs
    [    0.154968] usbcore: registered new interface driver hub
    [    0.155120] usbcore: registered new device driver usb
    [    0.155242] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.155487] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.169250] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.170806] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.173065] print_constraints: VRTC: 
    [    0.174438] print_constraints: VIO: at 1800 mV 
    [    0.176666] print_constraints: VDD1: 600 <--> 1500 mV at 1325 mV normal 
    [    0.178863] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal 
    [    0.179779] print_constraints: VDD3: 5000 mV 
    [    0.181121] print_constraints: VDIG1: at 1800 mV 
    [    0.182495] print_constraints: VDIG2: at 1800 mV 
    [    0.183837] print_constraints: VPLL: at 1800 mV 
    [    0.185180] print_constraints: VDAC: at 1800 mV 
    [    0.186523] print_constraints: VAUX1: at 1800 mV 
    [    0.187896] print_constraints: VAUX2: at 3300 mV 
    [    0.189239] print_constraints: VAUX33: at 3300 mV 
    [    0.190582] print_constraints: VMMC: at 3300 mV 
    [    0.190948] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.191925] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.192932] Switching to clocksource gp timer
    [    0.206604] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.206756] musb-hdrc musb-hdrc.0: dma type: pio
    [    0.207458] musb-hdrc musb-hdrc.0: USB OTG mode controller at e081c000 using PIO, IRQ 18
    [    0.207580] musb-hdrc musb-hdrc.1: dma type: pio
    [    0.207916] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.207977] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.208099] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.208099] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.208129] usb usb1: Product: MUSB HDRC host driver
    [    0.208129] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [    0.208129] usb usb1: SerialNumber: musb-hdrc.1
    [    0.208862] hub 1-0:1.0: USB hub found
    [    0.208892] hub 1-0:1.0: 1 port detected
    [    0.209381] musb-hdrc musb-hdrc.1: USB Host mode controller at e081e800 using PIO, IRQ 19
    [    0.209747] NET: Registered protocol family 2
    [    0.209899] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.210174] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [    0.210388] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.210510] TCP: Hash tables configured (established 16384 bind 16384)
    [    0.210540] TCP reno registered
    [    0.210540] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.210540] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.210693] NET: Registered protocol family 1
    [    0.210937] RPC: Registered named UNIX socket transport module.
    [    0.210937] RPC: Registered udp transport module.
    [    0.210937] RPC: Registered tcp transport module.
    [    0.210968] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.211151] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.230743] VFS: Disk quotas dquot_6.5.2
    [    0.230804] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.231231] msgmni has been set to 1001
    [    0.231903] io scheduler noop registered
    [    0.231933] io scheduler deadline registered
    [    0.231964] io scheduler cfq registered (default)
    [    0.233154] usbcore: registered new interface driver udlfb
    [    0.233917] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.870361] console [ttyO0] enabled
    [    0.874603] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.882385] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.890136] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.897918] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.905670] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.920898] brd: module loaded
    [    0.928222] loop: module loaded
    [    0.931671] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.938171] i2c-core: driver [tsl2550] using legacy resume method
    [    0.944732] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.043609] No daughter card found
    [    1.047210] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.056579] Board name: A33515BB
    [    1.059967] Board version: 1.4A
    [    1.063232] SKU: SKU#01
    [    1.083526] The board is general purpose EVM in profile 0
    [    1.089172] Found invalid GP EVM revision, falling back to Rev1.1A
    [    1.141387]  da8xx_lcdc.0: alias fck already exists
    [    1.146697] usb 1-1: new high-speed USB device number 2 using musb-hdrc
    [    1.154022] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
    [    1.175048] Console: switching to colour frame buffer device 100x30
    [    1.194091] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.199096] Registering NAND on CS0
    [    1.203399]  omap_i2c.2: alias fck already exists
    [    1.223602] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    1.230072] tsl2550 2-0039: standard operating mode
    [    1.235351] tsl2550: probe of 2-0039 failed with error -121
    [    1.249389]  omap_hsmmc.0: alias fck already exists
    [    1.254791]  omap_hsmmc.2: alias fck already exists
    [    1.274566] Configure Bluetooth Enable pin...
    [    1.294158] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [    1.301788] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [    1.334838] usb 1-1: New USB device found, idVendor=04b4, idProduct=6572
    [    1.341827] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [    1.349304] usb 1-1: Product: USB2.0 Hub
    [    1.353485] lis3lv02d: unknown sensor type 0x87
    [    1.358306] lis3lv02d_i2c: probe of 2-0018 failed with error -22
    [    1.365295] adc#01 : 4 
    [    1.368652] adc#02 : 8 
    [    1.373077] hub 1-1:1.0: USB hub found
    [    1.377624] hub 1-1:1.0: 4 ports detected
    [    1.382873] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    1.390228] omap2-nand driver initializing
    [    1.394866] ONFI flash detected
    [    1.398254] ONFI param page 0 valid
    [    1.401916] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron MT29F8G08ABABAWP)
    [    1.410522] Creating 8 MTD partitions on "omap2-nand.0":
    [    1.416107] 0x000000000000-0x000000080000 : "SPL"
    [    1.422912] 0x000000080000-0x000000100000 : "SPL.backup1"
    [    1.429748] 0x000000100000-0x000000180000 : "SPL.backup2"
    [    1.436492] 0x000000180000-0x000000200000 : "SPL.backup3"
    [    1.443237] 0x000000200000-0x000000380000 : "U-Boot"
    [    1.449707] 0x000000380000-0x000000400000 : "U-Boot Env"
    [    1.456390] 0x000000400000-0x000001000000 : "Kernel"
    [    1.463928] 0x000001000000-0x000040000000 : "File System"
    [    1.574371] OneNAND driver initializing
    [    1.623565] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    1.630035] davinci_mdio davinci_mdio.0: no live phy, scanning all
    [    1.636810] davinci_mdio: probe of davinci_mdio.0 failed with error -5
    [    1.643798] PPP generic driver version 2.4.2
    [    1.648620] PPP BSD Compression module registered
    [    1.653564] PPP Deflate Compression module registered
    [    1.659240] PPP MPPE Compression module registered
    [    1.664520] usbcore: registered new interface driver zd1201
    [    1.670532] usbcore: registered new interface driver cdc_ether
    [    1.676910] usbcore: registered new interface driver cdc_eem
    [    1.683013] usbcore: registered new interface driver dm9601
    [    1.688903] cdc_ncm: 04-Aug-2011
    [    1.692504] usbcore: registered new interface driver cdc_ncm
    [    1.698455] Initializing USB Mass Storage driver...
    [    1.703796] usbcore: registered new interface driver usb-storage
    [    1.710052] USB Mass Storage support registered.
    [    1.715209] usbcore: registered new interface driver usbserial
    [    1.721313] usbserial: USB Serial Driver core
    [    1.726013] USB Serial support registered for cp210x
    [    1.731384] usbcore: registered new interface driver cp210x
    [    1.737243] cp210x: v0.09:Silicon Labs CP210x RS232 serial adaptor driver
    [    1.744445] USB Serial support registered for pl2303
    [    1.749755] usbcore: registered new interface driver pl2303
    [    1.755615] pl2303: Prolific PL2303 USB to serial adaptor driver
    [    1.762329] mousedev: PS/2 mouse device common for all mice
    [    1.769134] input: adp5588-keys as /devices/platform/omap/omap_i2c.1/i2c-1/1-0034/input/input0
    [    1.783843] usb 1-1.2: new full-speed USB device number 3 using musb-hdrc
    [    1.791320] adp5588_keys 1-0034: Rev.4 keypad, irq 216
    [    1.797729] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input1
    [    1.806488] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    [    1.813293] i2c /dev entries driver
    [    1.817687] Linux video capture interface: v2.00
    [    1.822845] lm75: probe of 2-0048 failed with error -121
    [    1.894989] usb 1-1.2: New USB device found, idVendor=10c4, idProduct=ea60
    [    1.902191] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    1.909820] usb 1-1.2: Product: CP2102 USB to UART Bridge Controller
    [    1.916473] usb 1-1.2: Manufacturer: Silicon Labs
    [    1.921386] usb 1-1.2: SerialNumber: 0001
    [    1.926971] cp210x 1-1.2:1.0: cp210x converter detected
    [    1.964416] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [    1.975402] cpuidle: using governor ladder
    [    1.980163] cpuidle: using governor menu
    [    1.984436] sdhci: Secure Digital Host Controller Interface driver
    [    1.990905] sdhci: Copyright(c) Pierre Ossman
    [    2.001037] usbcore: registered new interface driver usbhid
    [    2.006927] usbhid: USB HID core driver
    [    2.011657] tiadc tiadc: attached adc driver
    [    2.016479] usb 1-1.2: reset full-speed USB device number 3 using musb-hdrc
    [    2.024139] i2c-core: driver [hmc5843] using legacy suspend method
    [    2.030578] i2c-core: driver [hmc5843] using legacy resume method
    [    2.037872] usbcore: registered new interface driver snd-usb-audio
    [    2.044372] ALSA device list:
    [    2.047454]   No soundcards found.
    [    2.051025] oprofile: hardware counters not available
    [    2.056304] oprofile: using timer interrupt.
    [    2.060791] nf_conntrack version 0.5.0 (8013 buckets, 32052 max)
    [    2.067626] ip_tables: (C) 2000-2006 Netfilter Core Team
    [    2.073303] TCP cubic registered
    [    2.076690] NET: Registered protocol family 17
    [    2.081451] Bridge firewalling registered
    [    2.085693] lib80211: common routines for IEEE802.11 drivers
    [    2.091644] Registering the dns_resolver key type
    [    2.096588] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [    2.104614] ThumbEE CPU extension supported.
    [    2.109100] mux: Failed to setup hwmod io irq -22
    [    2.114685] Power Management for AM33XX family
    [    2.119537] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [    2.126190] Copied the M3 firmware to UMEM
    [    2.130493] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not support st_shift
    [    2.145812] clock: disabling unused clocks to save power
    [    2.153564] Detected MACID=d0:ff:50:55:5d:df
    [    2.159576] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [    2.215087] usb 1-1.2: cp210x converter now attached to ttyUSB0
    [    2.222290] Waiting for root device /dev/mmcblk0p2...
    [    2.247314] mmc0: new SDHC card at address aaaa
    [    2.252685] mmcblk0: mmc0:aaaa SU04G 3.69 GiB 
    [    2.259735]  mmcblk0: p1 p2
    [    2.344757] usb 1-1.3: new full-speed USB device number 4 using musb-hdrc
    [    2.354003] EXT3-fs (mmcblk0p2): recovery required on readonly filesystem
    [    2.361083] EXT3-fs (mmcblk0p2): write access will be enabled during recovery
    [    2.388977] mmc1: card claims to support voltages below the defined range. These will be ignored.
    [    2.408050] mmc1: queuing unknown CIS tuple 0x91 (3 bytes)
    [    2.414703] mmc1: new SDIO card at address 0001
    [    2.445220] usb 1-1.3: New USB device found, idVendor=10c4, idProduct=ea60
    [    2.452423] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    2.460083] usb 1-1.3: Product: CP2102 USB to UART Bridge Controller
    [    2.466735] usb 1-1.3: Manufacturer: Silicon Labs
    [    2.471618] usb 1-1.3: SerialNumber: 0001
    [    2.476806] kjournald starting.  Commit interval 5 seconds
    [    2.482635] EXT3-fs (mmcblk0p2): recovery complete
    [    2.488250] cp210x 1-1.3:1.0: cp210x converter detected
    [    2.498382] EXT3-fs (mmcblk0p2): mounted filesystem with ordered data mode
    [    2.505615] VFS: Mounted root (ext3 filesystem) readonly on device 179:2.
    [    2.513580] Freeing init memory: 608K
    [    2.574127] usb 1-1.3: reset full-speed USB device number 4 using musb-hdrc
    INIT: [    2.675537] usb 1-1.3: cp210x converter now attached to ttyUSB1
    version 2.88 booting
    [    2.754455] usb 1-1.4: new full-speed USB device number 5 using musb-hdrc
    [    2.855499] usb 1-1.4: New USB device found, idVendor=10c4, idProduct=ea60
    [    2.862701] usb 1-1.4: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    2.870361] usb 1-1.4: Product: CP2102 USB to UART Bridge Controller
    [    2.876983] usb 1-1.4: Manufacturer: Silicon Labs
    [    2.881896] usb 1-1.4: SerialNumber: 0001
    [    2.888885] cp210x 1-1.4:1.0: cp210x converter detected
    [    2.974334] usb 1-1.4: reset full-speed USB device number 5 using musb-hdrc
    [    3.090576] usb 1-1.4: cp210x converter now attached to ttyUSB2
    Starting udev
    [    4.348999] Disabling lock debugging due to kernel taint
    [    6.709930] cfg80211: Calling CRDA to update world regulatory domain
    [    6.830139] wl12xx: driver version: ol_R5.SP4.01-2-g1aa2c8e
    [    6.835998] wl12xx: compilation time: Sat Jan 10 12:45:07 2015
    [    7.177429] cfg80211: World regulatory domain updated:
    [    7.182861] cfg80211:     (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    [    7.191619] cfg80211:     (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [    7.199890] cfg80211:     (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [    7.208160] cfg80211:     (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    [    7.216430] cfg80211:     (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [    7.224670] cfg80211:     (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    [    7.290100] wl12xx: loaded
    Starting Bootlog daemon: bootlogd: cannot allocate pseudo tty: No such file or directory
    bootlogd.
    [   14.587982] EXT3-fs (mmcblk0p2): using internal journal
    ALSA: Restoring mixer settings...
    Configuring network interfaces... /usr/sbin/alsactl: load_state:1686: No soundcards found...
    [   15.233001] PHY 0:00 not found
    [   15.236297] PHY 0:01 not found
    udhcpc (v1.20.2) started
    Sending discover...
    Sending discover...
    Sending discover...
    No lease, failing
    done.
    INIT: Entering runlevel: 5
    Starting system message bus: dbus.
    Starting Dropbear SSH server: dropbear.
    Starting telnet daemon.
    Performing wifi calibration...
    [   25.628326] wl12xx: loaded
    Starting network benchmark server: netserver.
    Starting syslogd/klogd: done
    Starting thttpd.
    Launching Applications Desktop..
    /etc/rc5.d/S40app.sh: line 3: cd: /home/pda/app/launcher: No such file or directory
    ....Launched....
    Starting Lighttpd Web Server: 2015-03-18 14:26:22: (log.c.166) server started 
    lighttpd.
    /
    Starting Matrix GUI application.
    [   26.802917]  gadget: Mass Storage Function, version: 2009/09/11
    [   26.809234]  gadget: Number of LUNs=1
    [   26.813049]  lun0: LUN: removable file: /dev/mmcblk0p1
    [   26.818450]  gadget: Mass Storage Gadget, version: 2009/09/11
    [   26.824462]  gadget: userspace failed to provide iSerialNumber
    [   26.830566]  gadget: g_mass_storage ready
    [   26.834777] musb-hdrc musb-hdrc.0: MUSB HDRC host driver
    [   26.840362] musb-hdrc musb-hdrc.0: new USB bus registered, assigned bus number 2
    [   26.848205] usb usb2: New USB device found, idVendor=1d6b, idProduct=0002
    [   26.855285] usb usb2: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [   26.862823] usb usb2: Product: MUSB HDRC host driver
    [   26.868011] usb usb2: Manufacturer: Linux 3.2.0 musb-hcd
    [   26.873535] usb usb2: SerialNumber: musb-hdrc.0
    [   26.880187] hub 2-0:1.0: USB hub found
    [   26.884124] hub 2-0:1.0: 1 port detected
    [   27.205963] usb 2-1: new high-speed USB device number 2 using musb-hdrc
    [   27.414855] usb 2-1: device v04f2 pb355 is not supported
    [   27.420501] usb 2-1: New USB device found, idVendor=04f2, idProduct=b355
    [   27.427490] usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [   27.434936] usb 2-1: Product: 5M Web Camera
    [   27.584655] uvcvideo: Found UVC 1.00 device 5M Web Camera (04f2:b355)
    [   27.617645] input: 5M Web Camera as /devices/platform/omap/musb-ti81xx/musb-hdrc.0/usb2/2-1/2-1:1.0/input/input2
    [   27.635131] usbcore: registered new interface driver uvcvideo
    [   27.641235] USB Video Class driver (1.1.1)
    ***************************************************************
    ***************************************************************
    NOTICE: This file system contains the followin GPLv3 packages:
            binutils-symlinks
            binutils
            gdbserver
    
    If you do not wish to distribute GPLv3 components please remove
    the above packages prior to distribution.  This can be done using
    the opkg remove command.  i.e.:
        opkg remove <package>
    Where <package> is the name printed in the list above
    
    NOTE: If the package is a dependency of another package you
          will be notified of the dependent packages.  You should
          use the --force-removal-of-dependent-packages option to
          also remove the dependent packages as well
    ***************************************************************
    ***************************************************************
    Stopping Bootlog daemon: bootlogd.
    Error
     _____                    _____           _         _   
    |  _  |___ ___ ___ ___   |  _  |___ ___  |_|___ ___| |_ 
    |     |  _| .'| . | . |  |   __|  _| . | | | -_|  _|  _|
    |__|__|_| |__,|_  |___|  |__|  |_| |___|_| |___|___|_|  
                  |___|                    |___|            
    
    Arago Project http://arago-project.org am335x-evm ttyO0
    
    Arago 2013.05 am335x-evm ttyO0
    
    am335x-evm login: 

  • Hi,

    I am flashing all the images from sdcard to NAND from Linux. I have followed the following process and copied all the images under mtd0 - mtd7 partitions

    That mean my NAND flash is working fine. Please find attached nand flash log for giving the NAND details

    I have copied all the exiting images under sdcard /media/mmcblockp1/MLO u-boot.img uImage ubi.img

    flash_erase /dev/mtd1 0 0

    nandwrite -p /dev/mtd1 /media/mmcblk0p1/MLO

    flash_erase /dev/mtd2 0 0

    nandwrite -p /dev/mtd2 /media/mmcblk0p1/MLO

    flash_erase /dev/mtd3 0 0

    nandwrite -p /dev/mtd3 /media/mmcblk0p1/MLO

    flash_erase /dev/mtd4 0 0

    nandwrite -p /dev/mtd4 /media/mmcblk0p1/MLO

    flash_erase /dev/mtd5 0 0

    nandwrite -p /dev/mtd5 /media/mmcblk0p1/u-boot.img

    flash_erase /dev/mtd6 0 0

    nandwrite -p /dev/mtd6 media/mmcblk0p1/MLO/uImage

    ubiformat /dev/mtd7 -f media/mmcblk0p1/ubi.img  -s 4096 -O 4096

    The above commands are taking and try to boot from NAND but it is not booting from NAND. could you please let us know the NAND boot set arguments.

    Thanks,

    nand flash log.txt
    root@am335x-evm:~# cat /proc/mtd
    dev:    size   erasesize  name
    mtd0: 00080000 00080000 "SPL"
    mtd1: 00080000 00080000 "SPL.backup1"
    mtd2: 00080000 00080000 "SPL.backup2"
    mtd3: 00080000 00080000 "SPL.backup3"
    mtd4: 00180000 00080000 "U-Boot"
    mtd5: 00080000 00080000 "U-Boot Env"
    mtd6: 00c00000 00080000 "Kernel"
    mtd7: 3f000000 00080000 "File System"
    root@am335x-evm:~# ls -al /dev/mtd*
    crw-------    1 root     root       90,   0 Jan  1  2000 /dev/mtd0
    crw-------    1 root     root       90,   1 Jan  1  2000 /dev/mtd0ro
    crw-------    1 root     root       90,   2 Jan  1  2000 /dev/mtd1
    crw-------    1 root     root       90,   3 Jan  1  2000 /dev/mtd1ro
    crw-------    1 root     root       90,   4 Jan  1  2000 /dev/mtd2
    crw-------    1 root     root       90,   5 Jan  1  2000 /dev/mtd2ro
    crw-------    1 root     root       90,   6 Jan  1  2000 /dev/mtd3
    crw-------    1 root     root       90,   7 Jan  1  2000 /dev/mtd3ro
    crw-------    1 root     root       90,   8 Jan  1  2000 /dev/mtd4
    crw-------    1 root     root       90,   9 Jan  1  2000 /dev/mtd4ro
    crw-------    1 root     root       90,  10 Jan  1  2000 /dev/mtd5
    crw-------    1 root     root       90,  11 Jan  1  2000 /dev/mtd5ro
    crw-------    1 root     root       90,  12 Jan  1  2000 /dev/mtd6
    crw-------    1 root     root       90,  13 Jan  1  2000 /dev/mtd6ro
    crw-------    1 root     root       90,  14 Jan  1  2000 /dev/mtd7
    crw-------    1 root     root       90,  15 Jan  1  2000 /dev/mtd7ro
    brw-rw----    1 root     disk       31,   0 Jan  1  2000 /dev/mtdblock0
    brw-rw----    1 root     disk       31,   1 Jan  1  2000 /dev/mtdblock1
    brw-rw----    1 root     disk       31,   2 Jan  1  2000 /dev/mtdblock2
    brw-rw----    1 root     disk       31,   3 Jan  1  2000 /dev/mtdblock3
    brw-rw----    1 root     disk       31,   4 Jan  1  2000 /dev/mtdblock4
    brw-rw----    1 root     disk       31,   5 Jan  1  2000 /dev/mtdblock5
    brw-rw----    1 root     disk       31,   6 Jan  1  2000 /dev/mtdblock6
    brw-rw----    1 root     disk       31,   7 Jan  1  2000 /dev/mtdblock7
    
    root@am335x-evm:~# flash_erase /dev/mtd0 0 0 
    Erasing 512 Kibyte @ 0 -- 100 % complete 
    
    root@am335x-evm:~# flash_erase /dev/mtd1 0 0 
    flash_erase: Skipping bad block at 00000000
    
    Erasing 512 Kibyte @ 0 -- 100 % complete 
    root@am335x-evm:~# flash_erase /dev/mtd2 0 0 
    
    flash_erase: Skipping bad block at 00000000
    Erasing 512 Kibyte @ 0 -- 100 % complete 
    
    root@am335x-evm:~# flash_erase /dev/mtd3 0 0 
    flash_erase: Skipping bad block at 00000000
    Erasing 512 Kibyte @ 0 -- 100 % complete 
    
    root@am335x-evm:~# flash_erase /dev/mtd4 0 0 
    flash_erase: Skipping bad block at 00000000
    Erasing 512 Kibyte @ 100000 -- 100 % complete 
    
    root@am335x-evm:~# flash_erase /dev/mtd5 0 0 
    flash_erase: Skipping bad block at 00000000
    Erasing 512 Kibyte @ 0 -- 100 % complete 
    
    root@am335x-evm:~# flash_erase /dev/mtd6 0 0 
    flash_erase: Skipping bad block at 00000000
    flash_erase: Skipping bad block at 00080000
    flash_erase: Skipping bad block at 00100000
    flash_erase: Skipping bad block at 00180000
    flash_erase: Skipping bad block at 00200000
    flash_erase: Skipping bad block at 00280000
    flash_erase: Skipping bad block at 00300000
    Erasing 512 Kibyte @ b80000 -- 100 % complete 
    root@am335x-evm:~# 
    root@am335x-evm:~# mtdinfo /dev/mtd0 
    mtd0
    Name:                           SPL
    Type:                           nand
    Eraseblock size:                524288 bytes, 512.0 KiB
    Amount of eraseblocks:          1 (524288 bytes, 512.0 KiB)
    Minimum input/output unit size: 4096 bytes
    Sub-page size:                  1024 bytes
    OOB size:                       224 bytes
    Character device major/minor:   90:0
    Bad blocks are allowed:         true
    Device is writable:             true
    
    root@am335x-evm:~# mtdinfo /dev/mtd1
    mtd1
    Name:                           SPL.backup1
    Type:                           nand
    Eraseblock size:                524288 bytes, 512.0 KiB
    Amount of eraseblocks:          1 (524288 bytes, 512.0 KiB)
    Minimum input/output unit size: 4096 bytes
    Sub-page size:                  1024 bytes
    OOB size:                       224 bytes
    Character device major/minor:   90:2
    Bad blocks are allowed:         true
    Device is writable:             true
    
    root@am335x-evm:~# mtdinfo /dev/mtd2
    mtd2
    Name:                           SPL.backup2
    Type:                           nand
    Eraseblock size:                524288 bytes, 512.0 KiB
    Amount of eraseblocks:          1 (524288 bytes, 512.0 KiB)
    Minimum input/output unit size: 4096 bytes
    Sub-page size:                  1024 bytes
    OOB size:                       224 bytes
    Character device major/minor:   90:4
    Bad blocks are allowed:         true
    Device is writable:             true
    
    root@am335x-evm:~# mtdinfo /dev/mtd3
    mtd3
    Name:                           SPL.backup3
    Type:                           nand
    Eraseblock size:                524288 bytes, 512.0 KiB
    Amount of eraseblocks:          1 (524288 bytes, 512.0 KiB)
    Minimum input/output unit size: 4096 bytes
    Sub-page size:                  1024 bytes
    OOB size:                       224 bytes
    Character device major/minor:   90:6
    Bad blocks are allowed:         true
    Device is writable:             true
    
    root@am335x-evm:~# 
    root@am335x-evm:~# mtdinfo /dev/mtd4
    mtd4
    Name:                           U-Boot
    Type:                           nand
    Eraseblock size:                524288 bytes, 512.0 KiB
    Amount of eraseblocks:          3 (1572864 bytes, 1.5 MiB)
    Minimum input/output unit size: 4096 bytes
    Sub-page size:                  1024 bytes
    OOB size:                       224 bytes
    Character device major/minor:   90:8
    Bad blocks are allowed:         true
    Device is writable:             true
    
    root@am335x-evm:~# mtdinfo /dev/mtd5
    mtd5
    Name:                           U-Boot Env
    Type:                           nand
    Eraseblock size:                524288 bytes, 512.0 KiB
    Amount of eraseblocks:          1 (524288 bytes, 512.0 KiB)
    Minimum input/output unit size: 4096 bytes
    Sub-page size:                  1024 bytes
    OOB size:                       224 bytes
    Character device major/minor:   90:10
    Bad blocks are allowed:         true
    Device is writable:             true
    
    root@am335x-evm:~# mtdinfo /dev/mtd6
    mtd6
    Name:                           Kernel
    Type:                           nand
    Eraseblock size:                524288 bytes, 512.0 KiB
    Amount of eraseblocks:          24 (12582912 bytes, 12.0 MiB)
    Minimum input/output unit size: 4096 bytes
    Sub-page size:                  1024 bytes
    OOB size:                       224 bytes
    Character device major/minor:   90:12
    Bad blocks are allowed:         true
    Device is writable:             true
    
    root@am335x-evm:~# 
    root@am335x-evm:~# mtdinfo /dev/mtd7
    mtd7
    Name:                           File System
    Type:                           nand
    Eraseblock size:                524288 bytes, 512.0 KiB
    Amount of eraseblocks:          2016 (1056964608 bytes, 1008.0 MiB)
    Minimum input/output unit size: 4096 bytes
    Sub-page size:                  1024 bytes
    OOB size:                       224 bytes
    Character device major/minor:   90:14
    Bad blocks are allowed:         true
    Device is writable:             true
    

  • Hi,

    Can i expect the above solution, because still this is not yet cleared from my end. weather am335x have 1GB support or not. could you send the 1GB nand links, so that it is very easy to modify under my kernel.

    I am suspecting there is issue om loading the images from sdcard to NAND is not proper and correct setenv bootargs are required for NAND

    Please suggest me.

    Thanks
  • HI,

    In some forums, am335x is not support 4K page 1GB nand flash. It only support 2K page with 1GB.

    Please do the needful and solve my existing issue.

    Thanks
  • Hi Yordan,

    Still i am not success on NAND boot. But I am able write in to the NAND and booting with setenv arguments. 

    When the Boot pins change to NAND it is not booting default from NAND.

    It is showing CCCCCCC

    Tell me what are the changes (uboot & kernel) required for my 4k nand MT29F8G08ABABAWP. because i have already changed page size and others in u-boot & kernel.

    Also please let us know the mtd partitions for my 4k nand

    Thanks

  • Hi Lofna,

    NAND page size is defined in u-boot/include/configs/am335x_evm.h :

     /* NAND: device related configs */

    #define CONFIG_SYS_NAND_5_ADDR_CYCLE

    #define CONFIG_SYS_NAND_PAGE_COUNT (CONFIG_SYS_NAND_BLOCK_SIZE / \

    CONFIG_SYS_NAND_PAGE_SIZE)

    #define CONFIG_SYS_NAND_PAGE_SIZE 2048

    #define CONFIG_SYS_NAND_OOBSIZE 64

    #define CONFIG_SYS_NAND_BLOCK_SIZE (128*1024)


    In kernel nand related settings are defined in DTS, see am335x-evm.dts for example. Check the &gpmc node:

      &gpmc {
        status = "okay";
        pinctrl-names = "default", "sleep";
        pinctrl-0 = <&nandflash_pins_default>;
        pinctrl-1 = <&nandflash_pins_sleep>;
        ranges = <0 0 0x08000000 0x10000000>;    /* CS0: NAND */
        nand@0,0 {
            reg = <0 0 0>; /* CS0, offset 0 */
            ti,nand-ecc-opt = "bch8";
            ti,elm-id = <&elm>;
            nand-bus-width = <8>;
            gpmc,device-width = <1>;
            gpmc,sync-clk-ps = <0>;
            gpmc,cs-on-ns = <0>;
            gpmc,cs-rd-off-ns = <44>;
            gpmc,cs-wr-off-ns = <44>;
            gpmc,adv-on-ns = <6>;
            gpmc,adv-rd-off-ns = <34>;
            gpmc,adv-wr-off-ns = <44>;
            gpmc,we-on-ns = <0>;
            gpmc,we-off-ns = <40>;
            gpmc,oe-on-ns = <0>;
            gpmc,oe-off-ns = <54>;
            gpmc,access-ns = <64>;
            gpmc,rd-cycle-ns = <82>;
            gpmc,wr-cycle-ns = <82>;
            gpmc,wait-on-read = "true";
            gpmc,wait-on-write = "true";
            gpmc,bus-turnaround-ns = <0>;
            gpmc,cycle2cycle-delay-ns = <0>;
            gpmc,clk-activation-ns = <0>;
            gpmc,wait-monitoring-ns = <0>;
            gpmc,wr-access-ns = <40>;
            gpmc,wr-data-mux-bus-ns = <0>;
            /* MTD partition table */
            /* All SPL-* partitions are sized to minimal length
             * which can be independently programmable. For
             * NAND flash this is equal to size of erase-block */
            #address-cells = <1>;
            #size-cells = <1>;
            partition@0 {
                label = "NAND.SPL";
                reg = <0x00000000 0x000020000>;
            };
            partition@1 {
                label = "NAND.SPL.backup1";
                reg = <0x00020000 0x00020000>;
            };
            partition@2 {
                label = "NAND.SPL.backup2";
                reg = <0x00040000 0x00020000>;
            };
            partition@3 {
                label = "NAND.SPL.backup3";
                reg = <0x00060000 0x00020000>;
            };
            partition@4 {
                label = "NAND.u-boot-spl-os";
                reg = <0x00080000 0x00040000>;
            };
            partition@5 {
                label = "NAND.u-boot";
                reg = <0x000C0000 0x00100000>;
            };
            partition@6 {
                label = "NAND.u-boot-env";
                reg = <0x001C0000 0x00020000>;
            };
            partition@7 {
                label = "NAND.u-boot-env.backup1";
                reg = <0x001E0000 0x00020000>;
            };
            partition@8 {
                label = "NAND.kernel";
                reg = <0x00200000 0x00800000>;
            };
            partition@9 {
                label = "NAND.file-system";
                reg = <0x00A00000 0x0F600000>;
            };
        };
    };

    Best Regards,
    Yordan
      

  • Hi Yordan,

    I am using Linux 3.2 version and using ti-sdk-am335x-evm-06.00 uboot from SDK6. The same way i have modified according to my NAND (1024M bytes=1GB) is 4k page size.

    #define CONFIG_SYS_NAND_PAGE_SIZE 4096 //old 2048
    #define CONFIG_SYS_NAND_OOBSIZE 224 //old 64
    #define CONFIG_SYS_NAND_BLOCK_SIZE (128*4096) //old (128*1024)

    Modified mtd partitions under kernel board file board-am335xevm.c:
    static struct mtd_partition am335x_nand_partitions[] = {
    {
    .name = "SPL",
    .offset = 0, // Offset = 0x0000_0000
    .size = 1 * SZ_512K, // Size = 0x0008_0000
    },
    {
    .name = "SPL.backup1",
    .offset = MTDPART_OFS_APPEND, // Offset = 0x0008_0000
    .size = 1 * SZ_512K, // Size = 0x0008_0000
    },
    {
    .name = "SPL.backup2",
    .offset = MTDPART_OFS_APPEND, // Offset = 0x0010_0000
    .size = 1 * SZ_512K, // Size = 0x0008_0000
    },
    {
    .name = "SPL.backup3",
    .offset = MTDPART_OFS_APPEND, // Offset = 0x0018_0000
    .size = 1 * SZ_512K, // Size = 0x0008_0000
    },
    {
    .name = "U-Boot",
    .offset = MTDPART_OFS_APPEND, // Offset = 0x0020_0000
    .size = 4 * SZ_512K, // Size = 0x0020_0000
    },
    {
    .name = "U-Boot Env",
    .offset = MTDPART_OFS_APPEND, // Offset = 0x0040_0000
    .size = 1 * SZ_512K, // Size = 0x0008_0000
    },
    {
    .name = "Kernel",
    .offset = MTDPART_OFS_APPEND, // Offset = 0x0048_0000
    .size = 24 * SZ_512K, // Size = 0x00C0_0000
    },
    {
    .name = "File System",
    .offset = MTDPART_OFS_APPEND, // Offset = 0x0108_0000
    .size = 2015 * SZ_512K, // Size = 0x3EF8_0000
    },
    };

    Please let us know if there is any partition problem. Also please let us know the boot environment setenv arguments.

    Thanks,
  • Hi Yordan,

    Again I have changed the mtd partitions as default EVM provided. I am able to run the NAND booting (only kernel Image) over UART/MMC boot mode. that too if i run "run nandboot" command manually it is booting and not connecting to rootfs. It is giving the ubi error

    But my worry is, after flashed all the images to NAND, if i change the boot mode to NAND it is not booting by default.

    Please find attached log and mentioned all the nand process and boot env arguments. Please let us know if there is any modifications.

    Thanks

    am335x-nand-log.txt
    U-Boot SPL 2013.01.01 (Apr 08 2015 - 18:25:05)
    Incorrect magic number (0xffffffff) in EEPROM
    Could not get board ID Hard coded evm number #02
    Incorrect magic number (0xffffffff) in EEPROM
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401800 using PIO, IRQ 0
    OMAP SD/MMC: 0
    reading u-boot.img
    reading u-boot.img
    
    
    U-Boot 2013.01.01 (Apr 08 2015 - 18:25:05)
    
    I2C:   ready
    DRAM:  512 MiB
    WARNING: Caches not enabled
    Incorrect magic number (0xffffffff) in EEPROM
    Could not get board ID #01
    NAND:  ###Chip Detecting######
    ####01---NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Toshiba <NULL>)
    ####02---NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron NAND 1GiB 3,3V Micron 8-bit)
    1024 MiB
    MMC:   OMAP SD/MMC: 0, OMAP SD/MMC: 1
    *** Warning - bad CRC, using default environment
    
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Peripheral mode controller at 47401000 using PIO, IRQ 0
    musb-hdrc: ConfigData=0xde (UTMI-8, dyn FIFOs, bulk combine, bulk split, HB-ISO Rx, HB-ISO Tx, SoftConn)
    musb-hdrc: MHDRC RTL version 2.0
    musb-hdrc: setup fifo_mode 4
    musb-hdrc: 28/31 max ep, 16384/16384 memory
    USB Host mode controller at 47401800 using PIO, IRQ 0
    Net:   <ethaddr> not set. Validating first E-fuse MAC
    PHY reset timed out
    cpsw, usb_ether
    Hit any key to stop autoboot:  0
    U-boot#
    U-boot# mmc rescan;nand erase.chip;env default -f -a;saveenv
    
    NAND erase.chip: device 0 whole chip
    Erasing at 0x3ffc0000 -- 100% complete.
    OK
    ## Resetting to default environment
    Saving Environment to NAND...
    Erasing Nand...
    Attempt to erase non block-aligned data
    U-boot# fatload mmc 0 0x82000000 MLO;nand write 0x82000000 0x00000 0x20000;nand write 0x82000000 0x20000 0x20000;nand write 0x82000000 0x40000 0x20000;nand write 0x82000000 0x60000 0x20000;fatload mmc 0 0x82000000 u-boot.img;nand write 0x82000000 0x80000 0x60000;fatload mmc 0 0x82000000 uImage;nand write 0x82000000 0x280000 0x500000;fatload mmc 0 0x82000000 ubi.img;nand write 0x82000000 0x780000 0xFC0000;
    reading MLO
    101993 bytes read in 14 ms (6.9 MiB/s)
    
    NAND write: device 0 offset 0x0, size 0x20000
     131072 bytes written: OK
    
    NAND write: device 0 offset 0x20000, size 0x20000
     131072 bytes written: OK
    
    NAND write: device 0 offset 0x40000, size 0x20000
     131072 bytes written: OK
    
    NAND write: device 0 offset 0x60000, size 0x20000
     131072 bytes written: OK
    reading u-boot.img
    367232 bytes read in 42 ms (8.3 MiB/s)
    
    NAND write: device 0 offset 0x80000, size 0x60000
     393216 bytes written: OK
    reading uImage
    3212160 bytes read in 326 ms (9.4 MiB/s)
    
    NAND write: device 0 offset 0x280000, size 0x500000
     5242880 bytes written: OK
    reading ubi.img
    18874368 bytes read in 1899 ms (9.5 MiB/s)
    
    NAND write: device 0 offset 0x780000, size 0xfc0000
     16515072 bytes written: OK
    U-boot# run nandboot
    Booting from nand ...
    
    NAND read: device 0 offset 0x280000, size 0x500000
     5242880 bytes read: OK
    ## Booting kernel from Legacy Image at 80200000 ...
       Image Name:   Linux-3.2.0
       Image Type:   ARM Linux Kernel Image (uncompressed)
       Data Size:    3212096 Bytes = 3.1 MiB
       Load Address: 80008000
       Entry Point:  80008000
       Verifying Checksum ... OK
       Loading Kernel Image ... OK
    OK
    
    Starting kernel ...
    
    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 3.2.0 (root@ubuntu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #228 Wed Apr 8 18:43:08 IST 2015
    [    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 ES1.0 (sgx neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 130048
    [    0.000000] Kernel command line: console=ttyO0,115200n8 root=ubi0:rootfs rw ubi.mtd=7,2048 rootfstype=ubifs rootwait=1
    [    0.000000] PID hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)
    [    0.000000] Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)
    [    0.000000] Memory: 512MB = 512MB total
    [    0.000000] Memory: 512836k/512836k available, 11452k 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 : 0xe0800000 - 0xff000000   ( 488 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xe0000000   ( 512 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc05a0000   (5728 kB)
    [    0.000000]       .init : 0xc05a0000 - 0xc0637000   ( 604 kB)
    [    0.000000]       .data : 0xc0638000 - 0xc0694358   ( 369 kB)
    [    0.000000]        .bss : 0xc069437c - 0xc06c08d4   ( 178 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 24000000 Hz
    [    0.000000] omap_dm_timer_switch_src: Switching to HW default clocksource(sys_clkin_ck) for timer1, this may impact timekeeping in low power state
    [    0.000000] OMAP clocksource: GPTIMER1 at 24000000 Hz
    [    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000166] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.087764] pid_max: default: 32768 minimum: 301
    [    0.087861] Security Framework initialized
    [    0.087946] Mount-cache hash table entries: 512
    [    0.088272] CPU: Testing write buffer coherency: ok
    [    0.088930] devtmpfs: initialized
    [    0.107393] omap_hwmod: gfx: failed to hardreset
    [    0.123150] omap_hwmod: pruss: failed to hardreset
    [    0.124227] print_constraints: dummy:
    [    0.124516] NET: Registered protocol family 16
    [    0.126227] OMAP GPIO hardware version 0.1
    [    0.128251] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.130045]  omap_i2c.1: alias fck already exists
    [    0.130776]  omap2_mcspi.1: alias fck already exists
    [    0.130947]  omap2_mcspi.2: alias fck already exists
    [    0.131155]  edma.0: alias fck already exists
    [    0.131171]  edma.0: alias fck already exists
    [    0.131184]  edma.0: alias fck already exists
    [    0.150190] bio: create slab <bio-0> at 0
    [    0.151951] SCSI subsystem initialized
    [    0.153268] usbcore: registered new interface driver usbfs
    [    0.153517] usbcore: registered new interface driver hub
    [    0.153678] usbcore: registered new device driver usb
    [    0.153805] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.154022] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.154892] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.156433] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.158714] print_constraints: VRTC:
    [    0.160087] print_constraints: VIO: at 1800 mV
    [    0.162313] print_constraints: VDD1: 600 <--> 1500 mV at 1325 mV normal
    [    0.164511] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
    [    0.165439] print_constraints: VDD3: 5000 mV
    [    0.166775] print_constraints: VDIG1: at 1800 mV
    [    0.168128] print_constraints: VDIG2: at 1800 mV
    [    0.169477] print_constraints: VPLL: at 1800 mV
    [    0.170824] print_constraints: VDAC: at 1800 mV
    [    0.172173] print_constraints: VAUX1: at 1800 mV
    [    0.173523] print_constraints: VAUX2: at 3300 mV
    [    0.174864] print_constraints: VAUX33: at 3300 mV
    [    0.176199] print_constraints: VMMC: at 3300 mV
    [    0.176585] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.177569] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.178606] Switching to clocksource gp timer
    [    0.192419] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.192579] musb-hdrc musb-hdrc.0: dma type: pio
    [    0.193287] musb-hdrc musb-hdrc.0: USB OTG mode controller at e081c000 using PIO, IRQ 18
    [    0.193422] musb-hdrc musb-hdrc.1: dma type: pio
    [    0.193755] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.193817] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.193938] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.193949] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.193960] usb usb1: Product: MUSB HDRC host driver
    [    0.193968] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [    0.193976] usb usb1: SerialNumber: musb-hdrc.1
    [    0.194713] hub 1-0:1.0: USB hub found
    [    0.194738] hub 1-0:1.0: 1 port detected
    [    0.195216] musb-hdrc musb-hdrc.1: USB Host mode controller at e081e800 using PIO, IRQ 19
    [    0.195588] NET: Registered protocol family 2
    [    0.195765] IP route cache hash table entries: 4096 (order: 2, 16384 bytes)
    [    0.196034] TCP established hash table entries: 16384 (order: 5, 131072 bytes)
    [    0.196250] TCP bind hash table entries: 16384 (order: 4, 65536 bytes)
    [    0.196377] TCP: Hash tables configured (established 16384 bind 16384)
    [    0.196387] TCP reno registered
    [    0.196397] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.196414] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.196566] NET: Registered protocol family 1
    [    0.196788] RPC: Registered named UNIX socket transport module.
    [    0.196798] RPC: Registered udp transport module.
    [    0.196805] RPC: Registered tcp transport module.
    [    0.196812] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.197010] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.216656] VFS: Disk quotas dquot_6.5.2
    [    0.216714] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.217148] msgmni has been set to 1001
    [    0.217786] io scheduler noop registered
    [    0.217796] io scheduler deadline registered
    [    0.217847] io scheduler cfq registered (default)
    [    0.219061] usbcore: registered new interface driver udlfb
    [    0.219805] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.870248] console [ttyO0] enabled
    [    0.874506] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.882327] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.890083] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.897823] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.905578] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.921058] brd: module loaded
    [    0.928310] loop: module loaded
    [    0.931815] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.938274] i2c-core: driver [tsl2550] using legacy resume method
    [    0.944829] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.028661] No daughter card found
    [    1.032253] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.041614] Board name: A33515BB
    [    1.044985] Board version: 1.4A
    [    1.048263] SKU: SKU#01
    [    1.068641] The board is general purpose EVM in profile 0
    [    1.074281] Found invalid GP EVM revision, falling back to Rev1.1A
    [    1.126495]  da8xx_lcdc.0: alias fck already exists
    [    1.131815] usb 1-1: new high-speed USB device number 2 using musb-hdrc
    [    1.139151] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
    [    1.160203] Console: switching to colour frame buffer device 100x30
    [    1.179239] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.184264] Registering NAND on CS0
    [    1.188491]  omap_i2c.2: alias fck already exists
    [    1.193754] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    1.200222] tsl2550 2-0039: standard operating mode
    [    1.309935] usb 1-1: New USB device found, idVendor=04b4, idProduct=6572
    [    1.316943] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [    1.324418] usb 1-1: Product: USB2.0 Hub
    [    1.329531] hub 1-1:1.0: USB hub found
    [    1.333748] hub 1-1:1.0: 4 ports detected
    [    1.618878] usb 1-1.2: new full-speed USB device number 3 using musb-hdrc
    [    1.720085] usb 1-1.2: New USB device found, idVendor=10c4, idProduct=ea60
    [    1.727275] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    1.734929] usb 1-1.2: Product: CP2102 USB to UART Bridge Controller
    [    1.741579] usb 1-1.2: Manufacturer: Silicon Labs
    [    1.746495] usb 1-1.2: SerialNumber: 0001
    [    1.828879] usb 1-1.3: new full-speed USB device number 4 using musb-hdrc
    [    1.930084] usb 1-1.3: New USB device found, idVendor=10c4, idProduct=ea60
    [    1.937273] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    1.944928] usb 1-1.3: Product: CP2102 USB to UART Bridge Controller
    [    1.951583] usb 1-1.3: Manufacturer: Silicon Labs
    [    1.956497] usb 1-1.3: SerialNumber: 0001
    [    2.218643] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    2.224767] tsl2550: probe of 2-0039 failed with error -110
    [    2.238959]  omap_hsmmc.0: alias fck already exists
    [    2.244367]  omap_hsmmc.2: alias fck already exists
    [    2.264133] Configure Bluetooth Enable pin...
    [    2.283725] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [    2.291374] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [    3.338640] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    3.344752] lis3lv02d: unknown sensor type 0x92
    [    3.349568] lis3lv02d_i2c: probe of 2-0018 failed with error -22
    [    3.357878] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    3.365106] omap2-nand driver initializing
    [    3.369719] ONFI flash detected
    [    3.373125] ONFI param page 0 valid
    [    3.376776] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron MT29F8G08ABABAWP)
    [    3.385346] Creating 8 MTD partitions on "omap2-nand.0":
    [    3.390929] 0x000000000000-0x000000020000 : "SPL"
    [    3.395844] mtd: partition "SPL" doesn't end on an erase block -- force read-only
    [    3.404974] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    3.410654] mtd: partition "SPL.backup1" doesn't start on an erase block boundary -- force read-only
    [    3.421337] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    3.426982] mtd: partition "SPL.backup2" doesn't start on an erase block boundary -- force read-only
    [    3.437697] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    3.443371] mtd: partition "SPL.backup3" doesn't start on an erase block boundary -- force read-only
    [    3.454072] 0x000000080000-0x000000260000 : "U-Boot"
    [    3.459292] mtd: partition "U-Boot" doesn't end on an erase block -- force read-only
    [    3.468701] 0x000000260000-0x000000280000 : "U-Boot Env"
    [    3.474255] mtd: partition "U-Boot Env" doesn't start on an erase block boundary -- force read-only
    [    3.484868] 0x000000280000-0x000000780000 : "Kernel"
    [    3.491671] 0x000000780000-0x000040000000 : "File System"
    [    3.602830] OneNAND driver initializing
    [    3.607492] UBI: attaching mtd7 to ubi0
    [    3.611548] UBI: physical eraseblock size:   524288 bytes (512 KiB)
    [    3.618101] UBI: logical eraseblock size:    520192 bytes
    [    3.623748] UBI: smallest flash I/O unit:    4096
    [    3.628667] UBI: sub-page size:              1024
    [    3.633582] UBI: VID header offset:          2048 (aligned 2048)
    [    3.639864] UBI: data offset:                4096
    [    3.683718] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 32:0, read 64 bytes
    [    3.700597] UBI error: ubi_io_read: error -74 (ECC error) while reading 1024 bytes from PEB 32:2048, read 1024 bytes
    [    3.718157] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 33:0, read 64 bytes
    [    3.735030] UBI error: ubi_io_read: error -74 (ECC error) while reading 1024 bytes from PEB 33:2048, read 1024 bytes
    [    3.752581] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 34:0, read 64 bytes
    [    3.769457] UBI error: ubi_io_read: error -74 (ECC error) while reading 1024 bytes from PEB 34:2048, read 1024 bytes
    [    3.787014] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 35:0, read 64 bytes
    [    3.803888] UBI error: ubi_io_read: error -74 (ECC error) while reading 1024 bytes from PEB 35:2048, read 1024 bytes
    [    3.821444] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 36:0, read 64 bytes
    [    3.838315] UBI error: ubi_io_read: error -74 (ECC error) while reading 1024 bytes from PEB 36:2048, read 1024 bytes
    [    3.855874] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 37:0, read 64 bytes
    [    3.872745] UBI error: ubi_io_read: error -74 (ECC error) while reading 1024 bytes from PEB 37:2048, read 1024 bytes
    [    3.890304] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 38:0, read 64 bytes
    [    3.907173] UBI error: ubi_io_read: error -74 (ECC error) while reading 1024 bytes from PEB 38:2048, read 1024 bytes
    [    3.924736] UBI error: ubi_io_read: error -74 (ECC error) while reading 64 bytes from PEB 39:0, read 64 bytes
    [    3.941576] UBI error: ubi_io_read: error -74 (ECC error) while reading 1024 bytes from PEB 39:2048, read 1024 bytes

  • Hi,

    When I boot sdcard image's from uart and sdcard mode is working and booting. Trying to boot from nand is not working. Why my bootpins are makes any issue

    Thanks

  • Hi,

    I have tried the same u-boot  in AM335X EVM (256 MB nand available & NAND connected via FPGA) It is working good. When i use the same logic in our customized am3354 board it is not booting default from NAND why?? .

    Thanks

  • Hi Yordan/Biser,

    I took the U-boot version from SDK7 and using the Linux 3.2 version. I have modified accodring to my micron 4GB nand with 4096 page, ECC bytes chnaged 26, BCH16 configured in my U-boot. I have flashed all the MLO, uboot.img, uImage mas per below steps:

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

    nand erase.chip;fatload mmc 0 0x81000000 MLO;cp.b 0x81000000 0x81020000 20000;cp.b 0x81000000 0x81040000 20000;cp.b 0x81000000 0x81060000 20000;nand write 0x81000000 0x0 0x80000;fatload mmc 0 0x81000000 u-boot.img;nand write 0x81000000 0xc0000 0x200000;fatload mmc 0 0x81000000 uImage;nand write 0x81000000 0xa00000 0x500000;

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

    After changed the boot pins to NAND mode, it is booting from NAND and till kernel image it was booted up. configured kernel image offset as 0xa00000 then only it is booting. As per this mtd partition how to flash the ubi.img to file system partition. Still some kernel crashes in my boot log.

    Please help me what are the boot commands need to give for booting the full system via NAND. Also plz suggest me the kernel mtd changes as well.

    Find the log for your reference.

    Thanks

    1780.nand flash log.txt
    U-Boot SPL 2013.10-00189-g78d8ebd-dirty (Apr 15 2015 - 18:45:56)
    # Lofna made U-boot (SDK7) modifications on 15 APR 2014 #
    Uncompressing Linux... done, booting the kernel.
    [    0.000000] Linux version 3.2.0 (root@ubuntu) (gcc version 4.6.3 (Ubuntu/Linaro 4.6.3-1ubuntu5) ) #228 Wed Apr 8 18:43:08 IST 2015
    [    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] Warning: Neither atags nor dtb found
    [    0.000000] Memory policy: ECC disabled, Data cache writeback
    [    0.000000] AM335X ES1.0 (sgx neon )
    [    0.000000] Built 1 zonelists in Zone order, mobility grouping off.  Total pages: 4064
    [    0.000000] Kernel command line: root=/dev/mmcblk0p2 rootwait console=ttyO0,115200
    [    0.000000] PID hash table entries: 64 (order: -4, 256 bytes)
    [    0.000000] Dentry cache hash table entries: 2048 (order: 1, 8192 bytes)
    [    0.000000] Inode-cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.000000] Memory: 16MB = 16MB total
    [    0.000000] Memory: 9284k/9284k available, 7100k 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 : 0xc1800000 - 0xff000000   ( 984 MB)
    [    0.000000]     lowmem  : 0xc0000000 - 0xc1000000   (  16 MB)
    [    0.000000]     modules : 0xbf000000 - 0xc0000000   (  16 MB)
    [    0.000000]       .text : 0xc0008000 - 0xc05a0000   (5728 kB)
    [    0.000000]       .init : 0xc05a0000 - 0xc0637000   ( 604 kB)
    [    0.000000]       .data : 0xc0638000 - 0xc0694358   ( 369 kB)
    [    0.000000]        .bss : 0xc069437c - 0xc06c08d4   ( 178 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 24000000 Hz
    [    0.000000] omap_dm_timer_switch_src: Switching to HW default clocksource(sys_clkin_ck) for timer1, this may impact timekeeping in low power state
    [    0.000000] OMAP clocksource: GPTIMER1 at 24000000 Hz
    [    0.000000] sched_clock: 32 bits at 24MHz, resolution 41ns, wraps every 178956ms
    [    0.000000] Console: colour dummy device 80x30
    [    0.000157] Calibrating delay loop... 996.14 BogoMIPS (lpj=4980736)
    [    0.087753] pid_max: default: 32768 minimum: 301
    [    0.087841] Security Framework initialized
    [    0.087928] Mount-cache hash table entries: 512
    [    0.088249] CPU: Testing write buffer coherency: ok
    [    0.088921] devtmpfs: initialized
    [    0.107387] omap_hwmod: gfx: failed to hardreset
    [    0.123141] omap_hwmod: pruss: failed to hardreset
    [    0.124241] print_constraints: dummy:
    [    0.124527] NET: Registered protocol family 16
    [    0.126273] OMAP GPIO hardware version 0.1
    [    0.128301] omap_mux_init: Add partition: #1: core, flags: 0
    [    0.130084]  omap_i2c.1: alias fck already exists
    [    0.130811]  omap2_mcspi.1: alias fck already exists
    [    0.130981]  omap2_mcspi.2: alias fck already exists
    [    0.131185]  edma.0: alias fck already exists
    [    0.131199]  edma.0: alias fck already exists
    [    0.131213]  edma.0: alias fck already exists
    [    0.150476] bio: create slab <bio-0> at 0
    [    0.152259] SCSI subsystem initialized
    [    0.153578] usbcore: registered new interface driver usbfs
    [    0.153828] usbcore: registered new interface driver hub
    [    0.153992] usbcore: registered new device driver usb
    [    0.154124] musb-ti81xx musb-ti81xx: musb0, board_mode=0x13, plat_mode=0x3
    [    0.154344] musb-ti81xx musb-ti81xx: musb1, board_mode=0x13, plat_mode=0x1
    [    0.155211] omap_i2c omap_i2c.1: bus 1 rev2.4.0 at 100 kHz
    [    0.156768] tps65910 1-002d: JTAGREVNUM 0x0
    [    0.159080] print_constraints: VRTC:
    [    0.160452] print_constraints: VIO: at 1800 mV
    [    0.162675] print_constraints: VDD1: 600 <--> 1500 mV at 1325 mV normal
    [    0.164871] print_constraints: VDD2: 600 <--> 1500 mV at 1137 mV normal
    [    0.165811] print_constraints: VDD3: 5000 mV
    [    0.167150] print_constraints: VDIG1: at 1800 mV
    [    0.168501] print_constraints: VDIG2: at 1800 mV
    [    0.169846] print_constraints: VPLL: at 1800 mV
    [    0.171190] print_constraints: VDAC: at 1800 mV
    [    0.172537] print_constraints: VAUX1: at 1800 mV
    [    0.173887] print_constraints: VAUX2: at 3300 mV
    [    0.175239] print_constraints: VAUX33: at 3300 mV
    [    0.176584] print_constraints: VMMC: at 3300 mV
    [    0.176981] tps65910 1-002d: No interrupt support, no core IRQ
    [    0.178007] Advanced Linux Sound Architecture Driver Version 1.0.24.
    [    0.179008] Switching to clocksource gp timer
    [    0.192861] musb-hdrc: version 6.0, ?dma?, otg (peripheral+host)
    [    0.193025] musb-hdrc musb-hdrc.0: dma type: pio
    [    0.193749] musb-hdrc musb-hdrc.0: USB OTG mode controller at c181c000 using PIO, IRQ 18
    [    0.193880] musb-hdrc musb-hdrc.1: dma type: pio
    [    0.194204] musb-hdrc musb-hdrc.1: MUSB HDRC host driver
    [    0.194264] musb-hdrc musb-hdrc.1: new USB bus registered, assigned bus number 1
    [    0.194387] usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
    [    0.194399] usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
    [    0.194410] usb usb1: Product: MUSB HDRC host driver
    [    0.194418] usb usb1: Manufacturer: Linux 3.2.0 musb-hcd
    [    0.194426] usb usb1: SerialNumber: musb-hdrc.1
    [    0.195146] hub 1-0:1.0: USB hub found
    [    0.195171] hub 1-0:1.0: 1 port detected
    [    0.195623] musb-hdrc musb-hdrc.1: USB Host mode controller at c181e800 using PIO, IRQ 19
    [    0.195994] NET: Registered protocol family 2
    [    0.196169] IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
    [    0.196421] TCP established hash table entries: 512 (order: 0, 4096 bytes)
    [    0.196443] TCP bind hash table entries: 512 (order: -1, 2048 bytes)
    [    0.196457] TCP: Hash tables configured (established 512 bind 512)
    [    0.196467] TCP reno registered
    [    0.196477] UDP hash table entries: 256 (order: 0, 4096 bytes)
    [    0.196494] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
    [    0.196648] NET: Registered protocol family 1
    [    0.196861] RPC: Registered named UNIX socket transport module.
    [    0.196873] RPC: Registered udp transport module.
    [    0.196880] RPC: Registered tcp transport module.
    [    0.196886] RPC: Registered tcp NFSv4.1 backchannel transport module.
    [    0.197087] NetWinder Floating Point Emulator V0.97 (double precision)
    [    0.200017] VFS: Disk quotas dquot_6.5.2
    [    0.200066] Dquot-cache hash table entries: 1024 (order 0, 4096 bytes)
    [    0.200473] msgmni has been set to 18
    [    0.201083] io scheduler noop registered
    [    0.201093] io scheduler deadline registered
    [    0.201142] io scheduler cfq registered (default)
    [    0.202180] usbcore: registered new interface driver udlfb
    [    0.202918] omap_uart.0: ttyO0 at MMIO 0x44e09000 (irq = 72) is a OMAP UART0
    [    0.852290] console [ttyO0] enabled
    [    0.856543] omap_uart.1: ttyO1 at MMIO 0x48022000 (irq = 73) is a OMAP UART1
    [    0.864365] omap_uart.2: ttyO2 at MMIO 0x48024000 (irq = 74) is a OMAP UART2
    [    0.872131] omap_uart.3: ttyO3 at MMIO 0x481a6000 (irq = 44) is a OMAP UART3
    [    0.879883] omap_uart.4: ttyO4 at MMIO 0x481a8000 (irq = 45) is a OMAP UART4
    [    0.887599] omap_uart.5: ttyO5 at MMIO 0x481aa000 (irq = 46) is a OMAP UART5
    [    0.903202] brd: module loaded
    [    0.910580] loop: module loaded
    [    0.914016] i2c-core: driver [tsl2550] using legacy suspend method
    [    0.920512] i2c-core: driver [tsl2550] using legacy resume method
    [    0.927056] at24 1-0051: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.009065] No daughter card found
    [    1.012657] at24 1-0050: 32768 byte 24c256 EEPROM, writable, 64 bytes/write
    [    1.022013] Board name: A33515BB
    [    1.025382] Board version: 1.4A
    [    1.028660] SKU: SKU#01
    [    1.049043] The board is general purpose EVM in profile 0
    [    1.054684] Found invalid GP EVM revision, falling back to Rev1.1A
    [    1.106897]  da8xx_lcdc.0: alias fck already exists
    [    1.112207] usb 1-1: new high-speed USB device number 2 using musb-hdrc
    [    1.119734] da8xx_lcdc da8xx_lcdc.0: GLCD: Found TFC_S9700RTWV35TR_01B panel
    [    1.128277] swapper: page allocation failure: order:10, mode:0xd1
    [    1.134675] Backtrace:
    [    1.137264] [<c00179a4>] (dump_backtrace+0x0/0x10c) from [<c0426c90>] (dump_stack+0x18/0x1c)
    [    1.146095]  r6:00000000 r5:000000d1 r4:00000001 r3:c06594c8
    [    1.152048] [<c0426c78>] (dump_stack+0x0/0x1c) from [<c007be30>] (warn_alloc_failed+0xc8/0x108)
    [    1.161157] [<c007bd68>] (warn_alloc_failed+0x0/0x108) from [<c007df80>] (__alloc_pages_nodemask+0x448/0x644)
    [    1.171528]  r3:00000000 r2:00000000
    [    1.175266]  r8:00000000 r7:c068b930 r6:c063a0b8 r5:0000000a r4:000000d1
    [    1.182304] [<c007db38>] (__alloc_pages_nodemask+0x0/0x644) from [<c00197c8>] (__dma_alloc+0xec/0x338)
    [    1.192047] [<c00196dc>] (__dma_alloc+0x0/0x338) from [<c001a0e8>] (dma_alloc_coherent+0x5c/0x68)
    [    1.201335] [<c001a08c>] (dma_alloc_coherent+0x0/0x68) from [<c041dbd8>] (fb_probe+0xad0/0xb34)
    [    1.210434]  r7:c0657a7c r6:c09d3680 r5:c09cc008 r4:c066c7d4
    [    1.216377] [<c041d108>] (fb_probe+0x0/0xb34) from [<c0227e34>] (platform_drv_probe+0x20/0x24)
    [    1.225397] [<c0227e14>] (platform_drv_probe+0x0/0x24) from [<c0226880>] (driver_probe_device+0xb8/0x2c0)
    [    1.235413] [<c02267c8>] (driver_probe_device+0x0/0x2c0) from [<c0226b64>] (__device_attach+0x44/0x48)
    [    1.245147]  r8:c06b7a4c r7:c0658cc8 r6:c0226b20 r5:c09cc008 r4:c066c718
    [    1.252182] [<c0226b20>] (__device_attach+0x0/0x48) from [<c0225570>] (bus_for_each_drv+0x64/0x90)
    [    1.261552]  r5:00000000 r4:c09cc008
    [    1.265297] [<c022550c>] (bus_for_each_drv+0x0/0x90) from [<c0226758>] (device_attach+0x90/0xa8)
    [    1.274486]  r6:00000000 r5:c09cc03c r4:c09cc008
    [    1.279332] [<c02266c8>] (device_attach+0x0/0xa8) from [<c0225e8c>] (bus_probe_device+0x2c/0x48)
    [    1.288514]  r6:00000000 r5:c09cc010 r4:c09cc008 r3:00000001
    [    1.294455] [<c0225e60>] (bus_probe_device+0x0/0x48) from [<c0224198>] (device_add+0x498/0x584)
    [    1.303561] [<c0223d00>] (device_add+0x0/0x584) from [<c0228418>] (platform_device_add+0x108/0x1dc)
    [    1.313037] [<c0228310>] (platform_device_add+0x0/0x1dc) from [<c00340a8>] (omap_device_register+0x38/0x5c)
    [    1.323226]  r7:c050501c r6:00000000 r5:c09d12c0 r4:c09cc000
    [    1.329165] [<c0034070>] (omap_device_register+0x0/0x5c) from [<c00341c8>] (omap_device_build_ss+0xfc/0x148)
    [    1.339445]  r4:c09cc000 r3:00000000
    [    1.343190] [<c00340cc>] (omap_device_build_ss+0x0/0x148) from [<c0034268>] (omap_device_build+0x54/0x5c)
    [    1.353217] [<c0034214>] (omap_device_build+0x0/0x5c) from [<c05a8428>] (am33xx_register_lcdc+0x64/0xb0)
    [    1.363141] [<c05a83c4>] (am33xx_register_lcdc+0x0/0xb0) from [<c0030d98>] (lcdc_init+0x64/0xac)
    [    1.372331]  r6:00000001 r5:00000000 r4:c064b09c
    [    1.377170] [<c0030d34>] (lcdc_init+0x0/0xac) from [<c0426eb4>] (_configure_device+0xb8/0xe0)
    [    1.386086]  r5:c065750c r4:00000001
    [    1.389838] [<c0426dfc>] (_configure_device+0x0/0xe0) from [<c00310fc>] (am335x_evm_setup+0x31c/0x428)
    [    1.399572]  r7:ffffffff r6:00000000 r5:c0656668 r4:c0695124
    [    1.405510] [<c0030de0>] (am335x_evm_setup+0x0/0x428) from [<c0238194>] (at24_probe+0x45c/0x50c)
    [    1.414699]  r7:00000000 r6:c09d6ec0 r5:c08b4820 r4:c08b4800
    [    1.420652] [<c0237d38>] (at24_probe+0x0/0x50c) from [<c02e345c>] (i2c_device_probe+0xd4/0x12c)
    [    1.429760] [<c02e3388>] (i2c_device_probe+0x0/0x12c) from [<c0226880>] (driver_probe_device+0xb8/0x2c0)
    [    1.439683] [<c02267c8>] (driver_probe_device+0x0/0x2c0) from [<c0226b1c>] (__driver_attach+0x94/0x98)
    [    1.449417]  r8:00000000 r7:00000000 r6:c08b4854 r5:c06714c0 r4:c08b4820
    [    1.456444] [<c0226a88>] (__driver_attach+0x0/0x98) from [<c022587c>] (bus_for_each_dev+0x64/0x90)
    [    1.465815]  r6:c0226a88 r5:00000000 r4:c06714c0 r3:c0226a88
    [    1.471755] [<c0225818>] (bus_for_each_dev+0x0/0x90) from [<c02264a8>] (driver_attach+0x24/0x28)
    [    1.480944]  r6:c09b5140 r5:c067cf70 r4:c06714c0
    [    1.485783] [<c0226484>] (driver_attach+0x0/0x28) from [<c0226104>] (bus_add_driver+0x18c/0x26c)
    [    1.494979] [<c0225f78>] (bus_add_driver+0x0/0x26c) from [<c0227034>] (driver_register+0x80/0x138)
    [    1.504359] [<c0226fb4>] (driver_register+0x0/0x138) from [<c02e5500>] (i2c_register_driver+0x34/0xe8)
    [    1.514093]  r8:00000000 r7:00000013 r6:00000000 r5:c081e000 r4:c0671498
    [    1.520936] r3:c067cf70
    [    1.523689] [<c02e54cc>] (i2c_register_driver+0x0/0xe8) from [<c05be8e4>] (at24_init+0x48/0x54)
    [    1.532788]  r5:c081e000 r4:c0694380
    [    1.536534] [<c05be89c>] (at24_init+0x0/0x54) from [<c00085fc>] (do_one_initcall+0x40/0x184)
    [    1.545368] [<c00085bc>] (do_one_initcall+0x0/0x184) from [<c05a0854>] (kernel_init+0x80/0x11c)
    [    1.554481] [<c05a07d4>] (kernel_init+0x0/0x11c) from [<c003f500>] (do_exit+0x0/0x66c)
    [    1.562762]  r5:c05a07d4 r4:00000000
    [    1.566500] Mem-info:
    [    1.568870] Normal per-cpu:
    [    1.571792] CPU    0: hi:    0, btch:   1 usd:   0
    [    1.576804] active_anon:0 inactive_anon:0 isolated_anon:0
    [    1.576809]  active_file:0 inactive_file:0 isolated_file:0
    [    1.576813]  unevictable:0 dirty:0 writeback:0 unstable:0
    [    1.576818]  free:1845 slab_reclaimable:24 slab_unreclaimable:369
    [    1.576823]  mapped:0 shmem:0 pagetables:0 bounce:0
    [    1.605289] Normal free:7380kB min:508kB low:632kB high:760kB active_anon:0kB inactive_anon:0kB active_file:0kB inactive_file:0kB unevictable:0kB isolated(anon):0kB isolated(file):0kB present:16256kB mlocked:0kB dirty:0kB writeback:0kB mapped:0kB shmem:0kB slab_reclaimable:96kB slab_unreclaimable:1476kB kernel_stack:232kB pagetables:0kB unstable:0kB bounce:0kB writeback_tmp:0kB pages_scanned:0 all_unreclaimable? yes
    [    1.643823] lowmem_reserve[]: 0 0
    [    1.647291] Normal: 1*4kB 2*8kB 2*16kB 1*32kB 2*64kB 2*128kB 1*256kB 1*512kB 2*1024kB 2*2048kB 0*4096kB = 7380kB
    [    1.657977] 0 total pagecache pages
    [    1.661624] 0 pages in swap cache
    [    1.665083] Swap cache stats: add 0, delete 0, find 0/0
    [    1.670547] Free swap  = 0kB
    [    1.673551] Total swap = 0kB
    [    1.677125] 4096 pages of RAM
    [    1.680244] 1877 free pages
    [    1.683157] 1775 reserved pages
    [    1.686433] 393 slab pages
    [    1.689263] 0 pages shared
    [    1.692086] 0 pages swap cached
    [    1.695370] da8xx_lcdc da8xx_lcdc.0: GLCD: kmalloc for frame buffer failed
    [    1.702603] da8xx_lcdc: probe of da8xx_lcdc.0 failed with error -22
    [    1.710468] omap-gpmc omap-gpmc: GPMC revision 6.0
    [    1.715488] Registering NAND on CS0
    [    1.719771]  omap_i2c.2: alias fck already exists
    [    1.724987] omap_i2c omap_i2c.2: bus 2 rev2.4.0 at 100 kHz
    [    1.731500] tsl2550 2-0039: standard operating mode
    [    1.850352] usb 1-1: New USB device found, idVendor=04b4, idProduct=6572
    [    1.857360] usb 1-1: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [    1.864831] usb 1-1: Product: USB2.0 Hub
    [    1.869944] hub 1-1:1.0: USB hub found
    [    1.874193] hub 1-1:1.0: 4 ports detected
    [    2.159267] usb 1-1.2: new full-speed USB device number 3 using musb-hdrc
    [    2.260427] usb 1-1.2: New USB device found, idVendor=10c4, idProduct=ea60
    [    2.267616] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    2.275270] usb 1-1.2: Product: CP2102 USB to UART Bridge Controller
    [    2.281918] usb 1-1.2: Manufacturer: Silicon Labs
    [    2.286831] usb 1-1.2: SerialNumber: 0001
    [    2.369282] usb 1-1.3: new full-speed USB device number 4 using musb-hdrc
    [    2.470489] usb 1-1.3: New USB device found, idVendor=10c4, idProduct=ea60
    [    2.477677] usb 1-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
    [    2.485327] usb 1-1.3: Product: CP2102 USB to UART Bridge Controller
    [    2.491977] usb 1-1.3: Manufacturer: Silicon Labs
    [    2.496890] usb 1-1.3: SerialNumber: 0001
    [    2.739044] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    2.745167] tsl2550: probe of 2-0039 failed with error -110
    [    2.759354]  omap_hsmmc.0: alias fck already exists
    [    2.764756]  omap_hsmmc.2: alias fck already exists
    [    2.784541] Configure Bluetooth Enable pin...
    [    2.804125] _regulator_get: 2-0018 supply Vdd not found, using dummy regulator
    [    2.811771] _regulator_get: 2-0018 supply Vdd_IO not found, using dummy regulator
    [    3.859044] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    3.865153] lis3lv02d: unknown sensor type 0x92
    [    3.869967] lis3lv02d_i2c: probe of 2-0018 failed with error -22
    [    3.878271] mtdoops: mtd device (mtddev=name/number) must be supplied
    [    3.885500] omap2-nand driver initializing
    [    3.890110] ONFI flash detected
    [    3.893508] ONFI param page 0 valid
    [    3.897157] NAND device: Manufacturer ID: 0x2c, Chip ID: 0x38 (Micron MT29F8G08ABABAWP)
    [    3.905748] Creating 8 MTD partitions on "omap2-nand.0":
    [    3.911326] 0x000000000000-0x000000020000 : "SPL"
    [    3.916241] mtd: partition "SPL" doesn't end on an erase block -- force read-only
    [    3.925395] 0x000000020000-0x000000040000 : "SPL.backup1"
    [    3.931072] mtd: partition "SPL.backup1" doesn't start on an erase block boundary -- force read-only
    [    3.941758] 0x000000040000-0x000000060000 : "SPL.backup2"
    [    3.947404] mtd: partition "SPL.backup2" doesn't start on an erase block boundary -- force read-only
    [    3.958096] 0x000000060000-0x000000080000 : "SPL.backup3"
    [    3.963766] mtd: partition "SPL.backup3" doesn't start on an erase block boundary -- force read-only
    [    3.974415] 0x000000080000-0x000000260000 : "U-Boot"
    [    3.979633] mtd: partition "U-Boot" doesn't end on an erase block -- force read-only
    [    3.989018] 0x000000260000-0x000000280000 : "U-Boot Env"
    [    3.994597] mtd: partition "U-Boot Env" doesn't start on an erase block boundary -- force read-only
    [    4.005205] 0x000000280000-0x000000780000 : "Kernel"
    [    4.012039] 0x000000780000-0x000040000000 : "File System"
    [    4.123095] OneNAND driver initializing
    [    4.169090] davinci_mdio davinci_mdio.0: davinci mdio revision 1.6
    [    4.175558] davinci_mdio davinci_mdio.0: detected phy mask 7fffffff
    [    4.182675] davinci_mdio.0: probed
    [    4.186236] davinci_mdio davinci_mdio.0: phy[31]: device 0:1f, driver unknown
    [    4.193830] PPP generic driver version 2.4.2
    [    4.198652] PPP BSD Compression module registered
    [    4.203596] PPP Deflate Compression module registered
    [    4.209226] PPP MPPE Compression module registered
    [    4.214494] usbcore: registered new interface driver zd1201
    [    4.220510] usbcore: registered new interface driver cdc_ether
    [    4.226735] usbcore: registered new interface driver cdc_eem
    [    4.232790] usbcore: registered new interface driver dm9601
    [    4.238653] cdc_ncm: 04-Aug-2011
    [    4.242168] usbcore: registered new interface driver cdc_ncm
    [    4.248082] Initializing USB Mass Storage driver...
    [    4.253409] usbcore: registered new interface driver usb-storage
    [    4.259699] USB Mass Storage support registered.
    [    4.264820] usbcore: registered new interface driver usbserial
    [    4.270931] usbserial: USB Serial Driver core
    [    4.275589] USB Serial support registered for cp210x
    [    4.280865] cp210x 1-1.2:1.0: cp210x converter detected
    [    4.359282] usb 1-1.2: reset full-speed USB device number 3 using musb-hdrc
    [    4.460208] usb 1-1.2: cp210x converter now attached to ttyUSB0
    [    4.466452] cp210x 1-1.3:1.0: cp210x converter detected
    [    4.549282] usb 1-1.3: reset full-speed USB device number 4 using musb-hdrc
    [    4.650123] usb 1-1.3: cp210x converter now attached to ttyUSB1
    [    4.656464] usbcore: registered new interface driver cp210x
    [    4.662307] cp210x: v0.09:Silicon Labs CP210x RS232 serial adaptor driver
    [    4.669527] USB Serial support registered for pl2303
    [    4.674897] usbcore: registered new interface driver pl2303
    [    4.680736] pl2303: Prolific PL2303 USB to serial adaptor driver
    [    4.687462] mousedev: PS/2 mouse device common for all mice
    [    4.694232] input: adp5588-keys as /devices/platform/omap/omap_i2c.1/i2c-1/1-0034/input/input0
    [    4.709549] adp5588_keys 1-0034: Rev.4 keypad, irq 217
    [    4.715889] input: ti-tsc as /devices/platform/omap/ti_tscadc/tsc/input/input1
    [    4.724633] omap_rtc omap_rtc: rtc core: registered omap_rtc as rtc0
    [    4.731478] i2c /dev entries driver
    [    4.735683] Linux video capture interface: v2.00
    [    5.759044] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    5.765169] lm75: probe of 2-0048 failed with error -110
    [    6.929042] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    7.949039] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    8.969039] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [    9.989039] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [   11.009039] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [   12.029039] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [   13.049069] omap_i2c omap_i2c.2: timeout waiting for bus ready
    [   13.056022] OMAP Watchdog Timer Rev 0x01: initial timeout 60 sec
    [   13.067066] cpuidle: using governor ladder
    [   13.071873] cpuidle: using governor menu
    [   13.076107] sdhci: Secure Digital Host Controller Interface driver
    [   13.082565] sdhci: Copyright(c) Pierre Ossman
    [   13.172980] usbcore: registered new interface driver usbhid
    [   13.178796] usbhid: USB HID core driver
    [   13.183580] tiadc tiadc: attached adc driver
    [   13.188351] i2c-core: driver [hmc5843] using legacy suspend method
    [   13.194831] i2c-core: driver [hmc5843] using legacy resume method
    [   13.202218] usbcore: registered new interface driver snd-usb-audio
    [   13.208662] ALSA device list:
    [   13.211781]   No soundcards found.
    [   13.215323] oprofile: hardware counters not available
    [   13.220596] oprofile: using timer interrupt.
    [   13.225079] nf_conntrack version 0.5.0 (145 buckets, 580 max)
    [   13.231530] ip_tables: (C) 2000-2006 Netfilter Core Team
    [   13.237195] TCP cubic registered
    [   13.240591] NET: Registered protocol family 17
    [   13.245338] Bridge firewalling registered
    [   13.249582] lib80211: common routines for IEEE802.11 drivers
    [   13.255523] Registering the dns_resolver key type
    [   13.260477] VFP support v0.3: implementor 41 architecture 3 part 30 variant c rev 3
    [   13.268468] ThumbEE CPU extension supported.
    [   13.272991] mux: Failed to setup hwmod io irq -22
    [   13.278517] Power Management for AM33XX family
    [   13.283377] Trying to load am335x-pm-firmware.bin (60 secs timeout)
    [   13.290045] Copied the M3 firmware to UMEM
    [   13.294328] omap_hwmod: wkup_m3: wkup_m3: hwmod data error: OMAP4 does not support st_shift
    [   13.308300] clock: disabling unused clocks to save power
    [   13.315990] Detected MACID=d0:5f:b8:87:d:b2
    [   13.321863] omap_rtc omap_rtc: setting system clock to 2000-01-01 00:00:00 UTC (946684800)
    [   13.331098] Waiting for root device /dev/mmcblk0p2...