Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Mar 2015 19:56:56 +0100
From:      Bernd Walter <ticso@cicely7.cicely.de>
To:        Guy Yur <guyyur@gmail.com>
Cc:        freebsd-arm@freebsd.org, Hellmuth Michaelis <hm@hellmuth-michaelis.de>
Subject:   Re: beaglebone boot from eMMC
Message-ID:  <20150318185656.GO53586@cicely7.cicely.de>
In-Reply-To: <CAC67Hz_ssdAHoRFqC7VAR9_XvTchc5DNhKPY4=LstcMx3j9NXw@mail.gmail.com>
References:  <3DF08C65-20E3-4524-B0E1-C5C096AA0FE8@hellmuth-michaelis.de> <54BA6DB9-DC61-4A6F-B948-777BB9800F54@bocal.org> <A923E8B5-72DC-4C19-B5CA-7729C7E16A5C@hellmuth-michaelis.de> <20150312132739.GA28385@cicely7.cicely.de> <A3E0A638-450D-4B83-90F7-090D45FF4420@bsdimp.com> <3EF47A05-60B2-4BB0-8688-018E50CF7D4A@hellmuth-michaelis.de> <CAC67Hz_ssdAHoRFqC7VAR9_XvTchc5DNhKPY4=LstcMx3j9NXw@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Mar 18, 2015 at 08:16:55PM +0200, Guy Yur wrote:
> Hi,
> 
> On Wed, Mar 18, 2015 at 9:23 AM, Hellmuth Michaelis
> <hm@hellmuth-michaelis.de> wrote:
> >
> > Its really weird. I fetched the Angstroem flasher to put back an original image onto the eMMC and that worked. I dumped the MBR for Linux and the MBR which was generated by the install script and they are both pretty OK and legal. I reordered files on the MSDOS partition. I played with different ???BIOS??? geometries (because Linux and FreeBSD have a rather different sight on this) to produce the partitions.
> >
> > Nothing helps - it does not boot FreeBSD from the eMMC MSDOS Partition. The only thing which made a difference was, when i used the Linux-generated MSDOS partition, removed the files in it and populated it with the FreeBSD-generated MLO and things - then it booted from it. I failed completely to add an UFS partition after the Linux-generated MSDOS partition, tried gpart, fdisk, bsdlabel. The UFS mmcsd1s2a can be generated, populated, fsck???d, tested, checked - after the next powercycle it simply disappeared.
> >
> > It seems to me that there is a bit more magic involved than only generate the partitions. In the Linux script to generate the image onto the eMMC, they check for:
> >
> > HEADER=$(hexdump -e '8/1 "%c"' /sys/bus/i2c/devices/0-0050/eeprom -s 5 -n 3)
> >
> > and possibly write to an eeprom - has someone an idea why this is needed ?
> >
> > Hellmuth
> >
> >
> 
> Is your msdosfs slice on the eMMC aligned to 1 MB?
> 
> I had the same "CCC" problem when I aligned the partition
> and used newfs_msdos.
> Removing the sector count adjustment calculation in newfs_msdos
> as was done in NetBSD worked for me.

I really have problems understanding why this is different to using a card.
TI must have some subtile differences in handling MMC vs SD media.
Wonder how it behaves if using an external MMC.
Unfortunately it became hard to buy MMC cards, especially big ones and
they only share same formfactor as full size cards.

-- 
B.Walter <bernd@bwct.de> http://www.bwct.de
Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20150318185656.GO53586>