Author Topic: Mainline kernel - u-boot from NAND  (Read 187 times)

Offline pistoletov

  • Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Mainline kernel - u-boot from NAND
« on: November 28, 2018, 12:21:32 pm »
Hi! Does it possible to boot from nand flash in mainline kernel?
Now i boot from sd card and rootfs on sata ssd disk on legacy kernel.
Does i need new u-boot for mainline kernel?

Offline rgmhtt

  • Full Member
  • ***
  • Posts: 194
  • Karma: +4/-1
    • View Profile
Re: Mainline kernel - u-boot from NAND
« Reply #1 on: November 28, 2018, 09:00:45 pm »
With both Fedora and Centos, using current uboot, I only have uboot on the uSD, and all partitions on the sata drive.  As long as there are no partitions on the uSD, uboot tries elsewhere for the partitions.

I have been meaning to ask on the Fedora-arm list about putting uboot on NAND, this is the incentive to do that...

Offline rgmhtt

  • Full Member
  • ***
  • Posts: 194
  • Karma: +4/-1
    • View Profile
Re: Mainline kernel - u-boot from NAND
« Reply #2 on: November 29, 2018, 08:36:40 am »
According to people that work with uboot and current kernels, it probably will won't work to put uboot on to NAND, but it might not take much more work on uboot.

If you are capable of making contributions to uboot (I am not), then join the sunxi uboot list and work with them on what needs to be added.  Otherwise wait until I get someone else to do the work.  This may take some real time (like months).


Offline pistoletov

  • Newbie
  • *
  • Posts: 40
  • Karma: +0/-0
    • View Profile
Re: Mainline kernel - u-boot from NAND
« Reply #3 on: November 29, 2018, 12:03:05 pm »
Thank you, friends.  I just found this - http://linux-sunxi.org/MTD_Driver. And this repo with first steps to do boot from nand - https://github.com/bbrezillon/linux-sunxi/tree/nand/sunxi/drivers
Unfortunatelly i am not have enough expiriens in software to contribute in this project. This is really hard work. Only wait is may way.
« Last Edit: November 29, 2018, 12:06:19 pm by pistoletov »

Offline rgmhtt

  • Full Member
  • ***
  • Posts: 194
  • Karma: +4/-1
    • View Profile
Re: Mainline kernel - u-boot from NAND
« Reply #4 on: November 30, 2018, 05:57:14 am »
Further, look here:

https://linux-sunxi.org/Mainlining_Effort

The place to ask about this is on the sunxi list.