SOC.sh -- > How to use it?

Hi,
I have a SOC.sh file in the boot partition of my micro SD. When is it executed?
Thank you in advance,
Plc

Obviously, when you run it...

It's only real purpose is too store bootloader information, to make it
easier to upgrade in the field...

Regards,

Obviously… I know it.

But is it automatically executed during the boot? OR during the first setup of my BB?

I cannot boot my BB… even if have prepared a new micro SD … So I’m analyzing all possible features of my Board.

Thank you in advance,
plc

Obviously... I know it.

But is it automatically executed during the boot? OR during the first setup
of my BB?

It's not run at boot-time, it's just a text file with important
bootloader information that can then be later, when you need to
upgrade the bootloader in the field..

I cannot boot my BB... even if have prepared a new micro SD ... So I'm
analyzing all possible features of my Board.

Either you in-properly formatted it, or copied the boot files in the
wrong order..

See: http://eewiki.net/display/linuxonarm/BeagleBone#BeagleBone-SetupmicroSD/SDcard

Regards,

I have used fdisk to format the SD… is it the same?

Plc

I’m not using BeagleBone, but BeagleBoard XM.

So what’s the correct setup of my Board?
Plc

I'm not using BeagleBone, but BeagleBoard XM.

Well that wasn't obvious to me, as you just stating "bb" in your email...

So what's the correct setup of my Board?

It's exactly the same, only the bootrom is even more pickier..
http://eewiki.net/display/linuxonarm/BeagleBoard#BeagleBoard-SetupmicroSD/SDcard

I have used fdisk to format the SD... is it the same?

Nope... some versions of fdisk are even broken.. Save yourself, use
sfdisk (just not: sfdisk (util-linux-ng 2.17.2) which is completely
broken..)

Regards,

I’ve done… nothing…

There's the problem...

So starting over from the beginning...

What are you doing and what directions are you following?

Regards,

I have followed these lines now:

http://www.google.com/url?q=http%3A%2F%2Feewiki.net%2Fdisplay%2Flinuxonarm%2FBeagleBoard%23BeagleBoard-SetupmicroSD%2FSDcard&sa=D&sntz=1&usg=AFQjCNFRdm6K2T4ODKvHMFCMWN9dYMlWYg

I have created 2 partitions, copy in order MLO u-boot.bin UImage and other files…, untared narcissus-rootfs into the 2nd partition, unmount, and I use the created SD into BBxM.

Nothing appears on GpkTerm/TeraTerm. No led flashes. I have an acquisition board attached to my BBxM (there only a green LED is on), but I don’t know the name of data acquisition board. In any case, I don’t think my problems depend on the attached hardware.

I need help,
please…
Plc

What version of sfdisk was used?

sudo sfdisk -v

What host os are you building this microSD with?

Is VirtualBox/Vmware/etc involved?

Regards,

Version:

sfdisk from util-linux 2.20.1

I’m using VmWare.

Regards…

Yuck... There usb driver is crap, it fails all the time...

You can contact vmware support via:
http://www.vmware.com/support.html

Or just boot into a normal native ubuntu/debian/fedora/etc install..

All the 'virtualizations' usb stacks suck...

Regards,

But some day ago I was able to work with usb to serial cable.

A problem then occurred… and I wasn’t able to work with my BBxM anymore.

I don’t understand where is the problem about usb for you.

Regards…
Plc

But some day ago I was able to work with usb to serial cable.

Using a usb-serial adapter in vmware is not the same as writing low
level disk data to an mmc card over a usb-mmc adapter..

A problem then occurred... and I wasn't able to work with my BBxM anymore.

I don't understand where is the problem about usb for you.

You can argue all you want, after dealing with this same question for
over 2 years.. Vmware/Virtualbox usb drivers suck.. They don't work,
they don't correctly flash the mmc device, etc.

Regards,

Dear Nelson,
I have tried to reconfigure a microSD by using Linux (not using a linux virtualization).
No output on serial port!
So… any idea?

Please, how can I verify if I have correctly installed all files?

Thank you in advance,
P.L.Carotenuto

Dear Nelson,
I have tried to reconfigure a microSD by using Linux (not using a linux
virtualization).

Which version of linux and which version of sfdisk?

No output on serial port!
So... any idea?

One last try..

Download:
https://rcn-ee.net/deb/rootfs/wheezy/debian-7.3-console-armhf-2013-12-17.tar.xz

tar xf debian-7.3-console-armhf-2013-12-17.tar.xz

cd debian-7.3-console-armhf-2013-12-17

run:

sudo ./setup_sdcard.sh --img-4gb debian-7.3 --dtb bone dt-beagle-xm

This will create an *.img file you can dd directory to your microSD card..

sudo dd if=./debian-7.3-4gb.img of=/dev/sdX

Regards,

Linux: Ubuntu 13.04
sfdisk: sfdisk da util-linux 2.20.1

I need to install Narcissus.

Tnx

Hi Robert,
I found a very strange thing about this SOC.sh file, if the boot partition has this file (generated using your setup_sdcard.sh), the USB gadget g_multi is loaded automatically when Beaglebone Black boots, but without this file, the g_multi is not loaded, and you need run modprobe command to load it.

I found this when I followed your guide to rebuild kernel. At that time, everything else works, but usb0 need a manual modprobe. But when I built sd card with setup_sdcard.sh, the g_multi is loaded automatically. By replacing files and changing boot options, I realized it is SOC.sh cause the difference. Do you know why.

Best Regards,

Jun

"SOC.sh" sets a board variable used by a generic init script, to call
a 2nd "board" specific init script which set's up the usb gadaget
driver.

/etc/init.d/boot_scripts.sh -> (SOC.sh) -> /opt/scripts/boot/*.sh

Regards,