Firefly Open Source Community

   Login   |   Register   |
New_Topic
123
New Topic
Print Previous Topic Next Topic

Trying to bring the Firefly up on mainline(ish)

2

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
2
Posted at 12/4/2014 11:43:49        Only Author  11#

OK, so I added


&emmc {
        clock-frequency = <100000000>;
        clock-freq-min-max = <400000 150000000>;

        supports-highspeed;
        supports-emmc;
        bootpart-no-access;

        supports-DDR_MODE;
        caps2-mmc-hs200;

        ignore-pm-notify;
        keep-power-in-suspend;

        status = "okay";
};

To the device tree and now I get


Synopsys Designware Multimedia Card Interface Driver
dwmmc_rockchip ff0c0000.dwmmc: Using internal DMA controller.
dwmmc_rockchip ff0c0000.dwmmc: Version ID is 270a
dwmmc_rockchip ff0c0000.dwmmc: DW MMC controller at irq 64, 32 bit host data width, 256 deep fifo
platform ff0c0000.dwmmc: Driver dwmmc_rockchip requests probe deferral
dwmmc_rockchip ff0f0000.dwmmc: num-slots property not found, assuming 1 slot is available
dwmmc_rockchip ff0f0000.dwmmc: Using internal DMA controller.
dwmmc_rockchip ff0f0000.dwmmc: Version ID is 270a
dwmmc_rockchip ff0f0000.dwmmc: DW MMC controller at irq 67, 32 bit host data width, 256 deep fifo
dwmmc_rockchip ff0f0000.dwmmc: No vmmc regulator found
dwmmc_rockchip ff0f0000.dwmmc: No vqmmc regulator found

So it at least now seems to see (kind of) the eMMC, which is ff0f0000.dwmmc

(ff0c0000.dwmmc is the sdmmc, which I assume is the SD card slot?)


About those regulator not found messages. The sdmmc device tree entry has


vmmc-supply = <&vcc_sdmmc>;
vqmmc-supply = <&vccio_sd>;


Would the emmc entry need the same? Not sure it's safe to go blindly adding

these things without the possibility of causing damage?


Cheers,

Andrew

Reply

Use props Report

2

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
2
Posted at 12/4/2014 18:19:42        Only Author  12#

@ac000:

You asked about NAND and I answered about NAND. But somewhere I told, that with eMMC you do not need any additional driver as the mainline dwmmc driver should work, if not, use the rkmmc. Then your partitions should be addressed as /dev/mmcblk0...

You can use rknand.ko as it can handle SD and MMC too, but it is not needed for eMMC as the usual drivers work fine.

If you need to sign and lock your systems images, you probably need to use RK Loader and rknand.ko but for open source you won't do that.


To avoid misunderstandings:

The word NAND is commonly used for raw NAND memory, having just blocks of FLASH. On the operating system side (Android / Linux /...)  additional software has to provide bad block management (BBT), error detection and correction (ECC) and wear-leveling (FTL).


eMMC is NAND behind a logic block that includes all of the above in hardware. So there is no additional software needed. You just write to a logical block device (LBA adressing) and the eMMC internal controller transfers LBA to physical memory blocks while keeping care of BBT, ECC and FTL.


Astralix

Reply

Use props Report

2

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
2
Posted at 12/4/2014 23:12:28        Only Author  13#

Thanks for the clarification.




Now I just need to know if it's safe to try adding




vmmc-supply = <&vcc_sdmmc>;
vqmmc-supply = <&vccio_sd>;




to the emmc device tree section? Or can getting these things

wrong severely knacker things up?




Cheers,

Andrew


Reply

Use props Report

2

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
2
Posted at 12/5/2014 00:47:49        Only Author  14#

Andrew, I do not have any 3288 device yet, so I didn't check the device tree for them.?

Sorry, I will report back as soon, as I have something new for you.




Astralix
Reply

Use props Report

2

Credits

0

Prestige

0

Contribution

new registration

Rank: 1

Credits
2
Posted at 12/5/2014 05:00:59        Only Author  15#

Maybe someone from Firefly could comment?




Essentially, what's the risk of causing hardware damage by using incorrect

entries in the device tree?




Cheers,

Andrew
Reply

Use props Report

403

Credits

10

Prestige

12

Contribution

intermediate

Rank: 3Rank: 3

Credits
403
Posted at 12/13/2014 10:35:18        Only Author  16#

Some geeks are working at it. The early work is at:



https://github.com/naobsd/linux/tree/na

... t-20141210






Reply

Use props Report

138

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
138
Posted at 1/13/2026 12:13:08        Only Author  17#
Your article was a real standout, thank you for sharing it. The Valid Analytics-Admn-201 test dumps sheet test questions are key to your promotion and salary boost—free for all!
Reply

Use props Report

119

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
119
Posted at 1/18/2026 22:20:54        Only Author  18#
Such a phenomenal article, I appreciate your sharing it with us. Thanks to the PCNSE latest test experience, I achieved a promotion and salary raise. Now, I’m sharing it for free with everyone. Best of luck with your career advancements!
Reply

Use props Report

127

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
127
Posted at 1/22/2026 17:13:13        Only Author  19#
我們Testpdf網站是在盡最大的努力為廣大考生提供最好最便捷的服務。速度和高效率當然不可避免,在當今的社會裏,高效率走到哪里都是熱議的話題,所以我們網站為廣大考生設計了一個高效率的培訓資料,可以讓考生迅速領悟,從而考試取得優異的成績。Testpdf PRINCE2的PRINCE2-Practitioner考試培訓資料可以幫助考生節省大量的時間和精力,考生也可以用多餘的時間和盡力來賺去更多的金錢。
Reply

Use props Report

128

Credits

0

Prestige

0

Contribution

registered members

Rank: 2

Credits
128
Posted at 1/23/2026 19:29:39        Only Author  20#
The content of this article really inspired me, thank you for sharing! The MCAE-Con-201 visual cert test exam questions are available for free—unlock your promotion and salary increase!
Reply

Use props Report

Return to List
123
You need to log in before you can reply Login | Register

This forum Credits Rules

Quick Reply Back to top Back to list