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.

SK-AM62B-P1: boot from NAND flash

Part Number: SK-AM62B-P1
Other Parts Discussed in Thread: SK-AM62B, SK-AM62-LP

Tool/software:

Hi,

I'm using SK-AM62B-P1 and it could boot from SD card. However, we want it boot from NAND flash.

I just find a guide about flashing linux to eMMC, I couldn't find how to do about letting it boot from AND flash. Could you provide me some refer? Thanks.

BR

Jacky

  • Hi Jacky,

    the SK-AM62B board has NOR flash, not NAND flash.

    Are you taking about the SK-AM62-LP board? This one does have NAND flash.

    Also see here for more info: https://e2e.ti.com/support/processors-group/processors/f/processors-forum/1288373/faq-how-to-flash-and-boot-u-boot-from-serial-nand-on-am62x-am62ax   There are steps (in the logs that are included in the FAQ) that show how to program the NAND flash. It basically uses U-Boot's `mtd` commands.

    Regards, Andreas

  • Hi Andreas,

    I have both SK-AM62-LP board and SK-AM62B-P1 board.

    I have seen the link about NAND flash on SK-AM62-LP board. It seems too complexd.

    Q1:

    Is there a way to program/write the image to NAND flash(for SK-AM62-LP) or NOR flash(for SK-AM62B) directly? Then I could let it boot from NAND flash or NOR flash.

    If there is,could you provide me the guide in detail? Thanks.

    Q2:

    If quetion 1 couldn't do. Could it flash a linux to NAND flash(for SK-AM62-LP) or NOR flash(for SK-AM62B) when it boot from SD card? Is there a guide? 

    I just find the guide about flash linux to eMMC dev.ti.com/.../node

    BR

    Jacky

  • Jacky,

    I'm on international business travel for the rest of the week; will look at this early next week as time allows. Generally speaking you'll need to prepare a NAND/NOR image that you can flash, we don't have that ready-to-go as part of the SDK. But there isn't really anything TI specific too it, so you should be able to do some internet searches on this topic.

    Regards, Andreas

  • Hi Andreas,

    How to do some setting to compile a NAND/NOR image?

    Now I have compile a image for SD card refer to here

    BR

    Jacky

  • Hi Jacky,

    Is there a way to program/write the image to NAND flash(for SK-AM62-LP) or NOR flash(for SK-AM62B) directly? Then I could let it boot from NAND flash or NOR flash.

    If there is,could you provide me the guide in detail? Thanks.

    Typically your best-bet is to use U-Boot as a programming tool, or Linux. Meaning, getting one of those up, and operating them to load a Flash image to DDR, and then program it. Even some "GUI Tools" that allow for an easier and more "direct" programming approach are just shells that wrap U-Boot for example in the case of Snagboot, see https://bootlin.com/blog/upgrading-snagboot-to-a-fully-fledged-factory-flashing-tool/   So either you automate the flashing through remote-controlling U-Boot in a scripted manner (could use `expect` and `autoexpect` Linux command line tools) yourself, or use a GUI tool like Snagboot, but in both cases you need to figure out the basic mechanics first, specific to your environment (board, flash device, connections, etc.).

    How to do some setting to compile a NAND/NOR image?

    Now I have compile a image for SD card refer to here

    Typically as part of the Yocto build process (also delivered as part of the SDK itself, see <SDK_installation_folder>/filesystem/*) you get a rootfs, as well as three U-Boot binaries (tiboot3.bin, tispl.bin, u-boot.img). Depending on the Flash device/type you use you need to package them into a Flash-compatible filesystem, such as UBIFS. If you search the E2E for "NOR Flash UBIFS" or "NAND Flash UBIFS" (or smilar) you should be able to find starting points on how to do that.

    Regards, Andreas