Current Server Time: 19:24 (Central Europe)

#apertus IRC Channel Logs

2013/06/23

Timezone: UTC


06:03
jucar1
joined the channel
06:04
jucar
left the channel
08:41
dmj_nova
left the channel
08:56
dmj_nova
joined the channel
12:10
Bertl
morning everyone!
12:15
dmj_nova
morning Bertl
12:21
Bertl
how's going with the zedboard?
12:26
dmj_nova
got a bit distracted after the download finished
12:26
dmj_nova
though my novel now includes a scene about ubuntu
12:29
Bertl
:)
12:29
dmj_nova
strangely enough it's actually about both kinds of ubuntu at the same time
12:30
dmj_nova
also trying to cross the road
12:30
dmj_nova
during a zombie apocalypse
12:30
dmj_nova
okay, I'm a nerdy writer
12:31
dmj_nova
btw, what's the issue with the whole arm toolchain stuff?
12:33
Bertl
ist there an issue?
12:33
dmj_nova
"2) Work around for arm toolchain install: sudo dpkg-reconfigure -plow dash (Select NO when prompted) "
12:34
dmj_nova
just wanted to learn what that bit is about so I understand it better
12:34
Bertl
I didn't do that, I simply installed a toolchain package (rpm)
12:34
Bertl
but alternatively you could simply use 'summon_arm_toolchain' (or what it is called) on debian/ubuntu
12:35
Bertl
ah, this is what is suggested for ubuntu: https://launchpad.net/gcc-arm-embedded
12:37
Bertl
but to answer the question, the few commands you mention above suggest that you remove dash as shell to make some scripts work which probably presume bash syntax
12:38
Bertl
(or the other way round)
12:39
Bertl
http://lwn.net/Articles/343924/
12:41
dmj_nova
actually that toolchain doesn't look right
12:41
Bertl
which one, and in what way?
12:42
dmj_nova
talks about M- and R- processors, but not A-
12:43
Bertl
I'd say they are just mentioning the ongoing effords
12:44
Bertl
any arm*eabi should do at least to get started
12:44
Bertl
but you can easily check the supported types once you installed it
12:47
dmj_nova
hmm...maybe I don't have to do anything special
12:47
dmj_nova
since I should already have quite recent gcc
12:47
Bertl
you need a cross compiler for arm, that's it
12:47
dmj_nova
whereas I think that gcc-arm-embedded might be basically backports to old ubuntu
12:48
Bertl
(on the x86 host), and a native arm toolchain on the target (if you want to compile there)
12:48
Bertl
so, if you already have arm-*gcc, no need to install a toolchain
12:50
Bertl
sidenote: you do not need any libraries, just binutils and gcc for building u-boot, linux kernel and bare metal stuff, but you will need a (g/u/new)lib(c) for userspace stuff like busybox
12:51
dmj_nova
boom, figured that out I think
13:28
dmj_nova
ugh, EULAs
13:36
Bertl
another reason to avoid GUI's with limited licenses
13:37
Bertl
-'
13:43
dmj_nova
Bertl: yeah, though this ISE thing seems to require it
13:44
Bertl
yeah, unfortunately all FPGA related tools do ...
13:46
dmj_nova
and they're *huge*
13:46
Bertl
yes, but that's mostly due to the inefficiently coded GUI stuff
13:47
dmj_nova
Admittedly, this tool is in fact smaller than the entire Ubuntu archives.
13:47
Bertl
lot of fancy images for each architecture, etc
13:53
dmj_nova
also trying to figure out just what this "ISE Design Suite" "voucher" that came in the box is for
13:53
Bertl
you don't need it for the WebPack edition
13:54
dmj_nova
the weird thing is it appears to be *for* the webpack edition
13:54
Bertl
but you can get some kind of product locked down license with that
13:57
Bertl
ah, the voucher seems to be for ChipScope?
14:49
jucar1
changed nick to: jucar
18:39
s3bastian
joined the channel
18:40
Bertl
welcome s3bastian!
18:47
s3bastian
hello!
18:47
s3bastian
I am doing a paramedic nightshift today, so I may have to leave on short notice ;)
18:48
s3bastian
I am just adding the TFTP booting method to the wiki
18:48
Bertl
I updated the TFTP stuff
18:48
s3bastian
ah even better ;)
18:49
s3bastian
then let me save what I have so far and then let me know whats new
18:50
Bertl
there is a new boot.bin, which uses an updated custom build of u-boot which is now able to boot old and new kernels
18:50
s3bastian
done: https://wiki.apertus.org/index.php?title=Axiom_Alpha#Booting_the_Zedboard_via_TFTP
18:50
Bertl
I also updated the autoboot script to handle this
18:50
s3bastian
sounds great, can you upload the files to the wiki?
18:51
Bertl
I'd prefer if you can do that, I'll paste the urls
18:51
Bertl
http://vserver.13thfloor.at/Stuff/AXIOM/TFTP/boot.bin
18:51
Bertl
this is the boot.bin which goes as BOOT.BIN to the SD or FLASH
18:51
Bertl
you also want to copy the 'ZED' folder to your tftp server
18:52
Bertl
and typically you link the parts in the same dir like this:
18:52
Bertl
system.bin -> ZedBoard_OOB_Design/system.bin
18:52
Bertl
ramdisk.image.gz -> ZedBoard_OOB_Design/ramdisk8M.image.gz
18:52
s3bastian
ok I am on it
18:53
Bertl
devicetree_ramdisk.dtb -> ZedBoard_OOB_Design/devicetree_ramdisk.dtb
18:53
Bertl
zImage -> ZedBoard_OOB_Design/zImage
18:53
Bertl
then autoboot (from boot.bin) will first request an IP via bootp
18:53
Bertl
then request the file ZED/u-boot.scr (the script)
18:54
Bertl
then execute that script, which contains:
18:54
Bertl
tftp 0x1000000 ZED/system.bin
18:54
Bertl
fpga load 0 0x${fileaddr} 0x${filesize}
18:54
Bertl
tftp 0x8000 ZED/zImage
18:54
Bertl
tftp 0x1000000 ZED/devicetree_ramdisk.dtb
18:54
Bertl
tftp 0x800000 ZED/ramdisk.image.gz
18:54
Bertl
bootz 0x8000 0x${fileaddr}:0x${filesize} 0x1000000
18:54
Bertl
go 0x8000so it first fetches the PL code and uploads it to the FPGA
18:54
Bertl
then it requests the kernel, devicetree and initrd
18:55
Bertl
then it tries to boot the new style (which should fail with an old kernel) ... I still have to test that
18:55
Bertl
and if that fails, it executes the old style
18:55
Bertl
(I'll verify that in a minute)
18:56
Bertl
otherwise we simply need two boot scripts
18:56
s3bastian
The 'ZED' folder do I get from where?
18:56
Bertl
http://vserver.13thfloor.at/Stuff/AXIOM/TFTP/ZED/
18:57
Bertl
the u-boot.scr inside the ZED folder is the old one, it definitely works with the old kernels
18:59
s3bastian
great, packing it all into an archive
19:00
Bertl
yeah, the script works with the old kernels as well
19:00
Bertl
boot time from power on till linux prompt is 29 seconds
19:01
Bertl
5 seconds till boot.bin is booted, 3 seconds wait to interrupt the bootloader, 3 seconds kernel boot, rest is bootp/tftp and stuff
19:03
Bertl
off for dinner, back later ...
20:30
Bertl
back now ...