GithubHelp home page GithubHelp logo

Comments (9)

humanoid2050 avatar humanoid2050 commented on July 22, 2024 1

Allrighty. Pulled the latest gatesgarth. Built, compiled, flashed just fine. U-Boot and kernel both react properly to the SD card being inserted and removed!

from meta-intel-edison.

htot avatar htot commented on July 22, 2024 1

Thanks for testing @humanoid2050

from meta-intel-edison.

andy-shev avatar andy-shev commented on July 22, 2024

To your last paragraph: U-Bott does not have a GPIO driver for Intel Tangier, that's why changing flags do nothing. But putting 'cd-inverted' into DTS should have an effect (as we exercised in #135 for cd_override_level).

from meta-intel-edison.

andy-shev avatar andy-shev commented on July 22, 2024

It seems I have nailed down what's going on in U-Boot. The firmware sets the mode for SD CD pin to native (mode 1), while in Linux kernel we first switch it to mode 0 (GPIO). That's why U-Boot doesn't ignore its state.

TL;DR: please test these two patches (@htot drop anything in your tree except these two along with andy-shev/u-boot@20d551a84d7a, so you will have only three patches on top of upstream U-Boot) andy-shev/u-boot@87f693a followed by andy-shev/u-boot@c5cfab6.

from meta-intel-edison.

htot avatar htot commented on July 22, 2024

Sure. I see it might be worth upgrading U-Boot to 2021.10 in our image.

from meta-intel-edison.

andy-shev avatar andy-shev commented on July 22, 2024

No response from the reporter @humanoid2050 and works for me, hence closing.

from meta-intel-edison.

htot avatar htot commented on July 22, 2024

For completeness I just tested these patches on Edison-Arduino. When SD card is not present:

=> ls mmc 1
Card did not respond to voltage select! : -110
Couldn't find partition mmc 1

When SD card is present:

=> ls mmc 1
            .disk/
            boot/
            casper/
            dists/
            EFI/
            install/
 1073741824   casper-rw
            pics/
            pool/
            preseed/
      134   autorun.inf
    18809   md5sum.txt
      229   README.diskdefines
  2501488   wubi.exe
    32256   ldlinux.sys
            syslinux/
 11015538   mb_bios_z490m_f20d.zip
            mb_bios_z490m_f20d/

7 file(s), 11 dir(s)

I didn't see any differences between booting with SD card inserted or not.

Other info:

=> fstype mmc 1
fat
=> fstypes
Supported filesystems: fat, ext4, btrfs
=> mmcinfo
Device: mmc@ff3fa000
Manufacturer ID: 2
OEM: 544d
Name: SD02G 
Bus Speed: 50000000
Mode: SD High Speed (50MHz)
Rd Block Len: 512
SD version 2.0
High Capacity: No
Capacity: 1.8 GiB
Bus Width: 4-bit
Erase Group Size: 512 Bytes

Seems to work fine on Edison-Arduino. I hope to force push later this evening. @humanoid2050 would you have time to test on your platform?

from meta-intel-edison.

humanoid2050 avatar humanoid2050 commented on July 22, 2024

I should be able to. I tried cobbling it together myself, but somehow I fixed uboot but broke kernel in a new way.

from meta-intel-edison.

htot avatar htot commented on July 22, 2024

force pushed to htot/master and htot/gatesgarth

from meta-intel-edison.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.