Re: [Trisquel-users] Coreboot to boot USB

2014-02-24 Thread bm-2cwce5abrzcyn1hzwsb33z4btaxgamtogq
Installing libftdi1 was enough to run flashrom. I don't recall removing it,  
but I did remove quite a few packages.


Re: [Trisquel-users] Coreboot to boot USB

2014-02-22 Thread info

Parse options tested with Trisquel 6 (gnome3) iso, Parabola iso.



Re: [Trisquel-users] Coreboot to boot USB

2014-02-22 Thread info

See my reply below regarding the updated coreboot image (plus source code).


Re: [Trisquel-users] Coreboot to boot USB

2014-02-22 Thread info
I've tested this on a drive that had the USB Mass Storage request failed  
bug. Now it works perfectly.


I've also tested Trisquel Mini ISO. The parse options also boot that  
(directly from GRUB, without seabios), without having to type any commands.


When selecting Parse it switches to a new GRUB menu with all the  
isolinux.cfg entries converted to GRUB entries.


Next I'll test this on a USB DVD drive.


Re: [Trisquel-users] Coreboot to boot USB

2014-02-22 Thread info
It will remain unchanged but now you can easily change the default grub.cfg  
using cbfstool (the config is in CBFS now). I will write a tutorial about  
this at some point.


cbfstool is included in coreboot source code, until ./util

I have another update planned:

Next update planned:
 - enumerate list of all ISO's on the root of a flash drive, generate
menu entries for loopback mounting and booting those directly.
 - automatically use scan and boot the 1st menu by default*

*an error appears, because the wrong prefix is set. (there are modules that  
most distro grub configs try to load, which aren't included in the grub  
payload)
(the idea is to test it by setting the prefix in GRUB to use the modules  
provided by the distro)


I think you can fix this by setting the right prefix to use the grub
modules on the HDD instead of in the boot flash.
I'll be testing this.


Re: [Trisquel-users] Coreboot to boot USB

2014-02-22 Thread info

The instructions are in FLASH_INSTRUCTION (file):

WARNING!
Updating your firmware has a risk of bricking the machine.
You have been warned, and do so at your own risk.

also see: README
---

this assumes that you already have coreboot running and are updating it.

put coreboot.rom in the flashrom directory
(coreboot.rom is in ./coreboot/build)

a flashrom executable is already compiled for convenience.
so if you don't want to compile, just make sure it has execute permission:
chmod +x ./flashrom

or if you want to compile it again:
make clean
make

---

with coreboot.rom in the flashrom directory, do this:
sudo ./flashrom -p internal -w coreboot.rom
--
or this command, if 3 flash chips are detected (in the case of X60's with the  
macronix flashchip):

sudo ./flashrom -p internal -w coreboot.rom -c MX25L1605D/MX25L1608D

shut down your machine after it says VERIFIED.



Note: you can also use the flashrom version provided by your distro.
Note: look in README for flashrom dependencies.



Re: [Trisquel-users] Coreboot to boot USB

2014-02-22 Thread info

Tested gdnewhat. Doesn't work but you can now use cat.

So you can use, eg:

cat (usb0)/isolinux/isolinux.cfg
It might link to another .cfg file. So cat that instead.

Then get the options, and adapt them. For example, I found the menu entry in  
there with those options on the APPEND line.


Then I found where those vmlinuz and initrd

Then you do (with those options):

linux (usb0)/isolinux/vmlinuz0 root=live:CDLABEL=hatrack20 rootfstype=auto ro  
rd.live.image quiet  rhgb rd.luks=0 rd.md=0 rd.dm=0


initrd (usb0)/isolinux/initrd0.img

boot


You can boot any distro, but not all of them work properly with the parser so  
in those cases you still hvae to do it manually.


That is how I manually booted the ISO. This is necessary in those cases where  
the parse options don't work properly. (for example, it couldn't boot  
gdnewhat or gnewsense - but it worked with Trisquel Mini, Trisuel and  
Parabola)


(usb0) means I'm assuming you used dd on the flash drive directly, and not  
on a partition.


Re: [Trisquel-users] Coreboot to boot USB

2014-02-22 Thread info

For those who are reading this, this assumes you already have coreboot.
This won't work if you have Lenovo BIOS (there are some extra steps  
involved).


--

wget http://gluglug.org.uk/X60/release/3/X60_source.tar.gz

Here is what I did:

tar -xf X60_source.tar.gz
cd X60_source/flashrom
or
cd X60_binary/flashrom

Note: I already have flashrom dependencies installed. Get the list in README.

make clean
make
cp ../coreboot/build/coreboot.rom .

Note: if you downloaded X60_binary.tar.gz, do this instead:
cp ../coreboot.rom .

sudo ./flashrom -p internal -w coreboot.rom

If it shows *VERIFIED* written at the end, then it worked.
At this point, shut down the machine (shut it down fully! Do not  
sleep/reboot).


---

If you didn't see that output above, you will have seen this instead:

$ sudo ./flashrom -p internal -w coreboot.rom
[sudo] password for user:
flashrom v0.9.7-r on Linux 3.12.4-gnu (i686)
flashrom is free software, get the source code at http://www.flashrom.org

Calibrating delay loop... OK.
Found chipset Intel ICH7M. Enabling flash write... OK.
Found Macronix flash chip MX25L1605 (2048 kB, SPI) at physical address  
0xffe0.
Found Macronix flash chip MX25L1605A/MX25L1606E (2048 kB, SPI) at physical  
address 0xffe0.
Found Macronix flash chip MX25L1605D/MX25L1608D (2048 kB, SPI) at physical  
address 0xffe0.
Multiple flash chip definitions match the detected chip(s): MX25L1605,  
MX25L1605A/MX25L1606E, MX25L1605D/MX25L1608D

Please specify which chip definition to use with the -c  option.


So I do this instead (on my X60):

sudo ./flashrom -p internal -w coreboot.rom -c MX25L1605D/MX25L1608D

And then I see that same successful output as above:

$ sudo ./flashrom -p internal -w coreboot.rom -c MX25L1605D/MX25L1608D
flashrom v0.9.7-r on Linux 3.12.4-gnu (i686)
flashrom is free software, get the source code at http://www.flashrom.org

Calibrating delay loop... OK.
Found chipset Intel ICH7M. Enabling flash write... OK.
Found Macronix flash chip MX25L1605D/MX25L1608D (2048 kB, SPI) at physical  
address 0xffe0.

Reading old flash chip contents... done.
Erasing and writing flash chip... Erase/write done.
Verifying flash... VERIFIED.




Re: [Trisquel-users] Coreboot to boot USB

2014-02-22 Thread info
Note, I am also fchmmr (same nick as on this forum) on IRC freenode. /query  
me there if you get stuck.


Re: [Trisquel-users] Coreboot to boot USB

2014-02-22 Thread junichiro
root@debian-gluglug:/home/junichiro/X60_binary/flashrom# ./flashrom -p  
internal -w coreboot.rom
./flashrom: error while loading shared libraries: libftdi.so.1: cannot open  
shared object file: No such file or directory

root@debian-gluglug:/home/junichiro/X60_binary/flashrom#



Re: [Trisquel-users] Coreboot to boot USB

2014-02-22 Thread info

See my note below (in this thread) about gdnewhat.


Re: [Trisquel-users] Coreboot to boot USB

2014-02-12 Thread info

Adding to note: working on a new update which should solve these issues.
(on the weekend of Saturday, February 15th)


Re: [Trisquel-users] Coreboot to boot USB

2014-02-05 Thread bm-2cwce5abrzcyn1hzwsb33z4btaxgamtogq
Most probably it is a stupid thing, but can't it chain somehow? Let the drive  
do the job. I have no idea how the magic of the proprietary BIOS works.


Re: [Trisquel-users] Coreboot to boot USB

2014-02-05 Thread bm-2cwce5abrzcyn1hzwsb33z4btaxgamtogq
I just tried the SeaBIOS with the Gluglug X60 docked. Serial means not access  
to a serial port, but a second computer to read the Serial output and give a  
particular input based on that output?


Re: [Trisquel-users] Coreboot to boot USB

2014-02-05 Thread bm-2cwce5abrzcyn1hzwsb33z4btaxgamtogq

Problem solved thanks to Mr. Rowe. I'll be back with more details.


Re: [Trisquel-users] Coreboot to boot USB

2014-02-05 Thread info
chainloader will not work as this requires a bios* (this is why it is  
necessary to boot a kernel and ramdisk directly).

*the gluglug x60 uses GRUB2 payload instead of SeaBIOS.


Re: [Trisquel-users] Coreboot to boot USB

2014-02-05 Thread info
To view serial output, connect the null modem cable to the dock and connect  
the other end via the USB serial adapter, to your other machine.
On that other machine, there are several ways to monitor serial output. The  
way I use is:

sudo screen /dev/ttyUSB0 115200

(if you don't have GNU Screen: sudo apt-get install screen)

The SeaBIOS payload is redundanty, strictly speaking. It will not be included  
in later updates. (instead, a SYSLINUX parser from the latest GRUB will be  
included, which makes booting ISO's much easier).


Re: [Trisquel-users] Coreboot to boot USB

2014-02-04 Thread bm-2cwce5abrzcyn1hzwsb33z4btaxgamtogq

Thank you. It beats the purpose of a Live system. But it looks workable.


Re: [Trisquel-users] Coreboot to boot USB

2014-02-04 Thread info

Example (USB):
 linux (usb0)/vmlinuz idle=halt
 initrd (usb0)/initrd.gz
 boot
Or CD (on the dock):
 linux (ata0)/vmlinuz idle=halt
 initrd (ata0)/initrd.gz
 boot

idle=halt turns off CPU throttling, which removes the whining noise. This is  
a workaround for a bug in the way coreboot handles power states. It happens  
when the CPU is idle (running at a lower speed).


Re: [Trisquel-users] Coreboot to boot USB

2014-02-04 Thread info
You can boot with USB. Not all drives work currently (GRUB2 USB mass storage  
support is incomplete). This is a common issue that will hopefully be  
addressed in the near future.


The ones I have and recommend: Kingston DT101 G2 (8GB).
There are others but this is what I have. (they work flawlessly in GRUB).


Re: [Trisquel-users] Coreboot to boot USB

2014-02-04 Thread info
You can boot USB in GRUB2 but you have to directly boot the kernel/ramdisk.  
Some example entries are in the menu.
There is a newer version of GRUB available that can parse the SYSLINUX menu  
(isolinux.cfg) of most ISO's and automatically create GRUB menu entries.


I plan on issuing an updated coreboot image in the near future, with this  
parses included and some menuentries that use it. This should make booting  
ISO's easier.
Currently there are some pre-defined menuentries for common FSDG distros  
(Trisquel, Parabola, gNewSense).


Re: [Trisquel-users] Coreboot to boot USB

2014-02-04 Thread info

http://git.savannah.gnu.org/cgit/grub.git/tree/grub-core/commands/syslinuxcfg.c

And an example that uses it:
http://git.savannah.gnu.org/cgit/grub.git/tree/docs/osdetect.cfg


Re: [Trisquel-users] Coreboot to boot USB

2014-02-02 Thread bm-2cwce5abrzcyn1hzwsb33z4btaxgamtogq
Sure. One of the many options says 'Boot SeaBIOS (requires serial ouput, baud  
115200) (for booting USB drives)'
Only it's one of those useless options. After a dark screen it defaults to  
normal boot. And a strange rather faint high pitch sounds that remains until  
I shut the system down.


Weird, because Mr. Rowe, in one of the messages prior to the purchase wrote  
to me that coreboot can boot USB without the need of SeaBIOS.


Re: [Trisquel-users] Coreboot to boot USB

2014-02-02 Thread eemeli . blasten
It seems booting into USB is buggy currently. In the readme included in the  
sources I found this sentence: GRUB2 USB support is buggy/temporamental at  
the time of writing


I also get the high-pitched noise when trying to boot using the SeaBios.


Re: [Trisquel-users] Coreboot to boot USB

2014-02-02 Thread bm-2cwce5abrzcyn1hzwsb33z4btaxgamtogq
So the only way out is plugging the docking station for those who have it and  
bare with the noise till they install another system. Not a nice perspective.


Re: [Trisquel-users] Coreboot to boot USB

2014-01-31 Thread firefoxbugreporter

You may want to use SeaBIOS as a payload to have support for USB devices.