*** tpb has joined #timvideos | 00:00 | |
*** medicalwei has quit IRC | 00:29 | |
*** medicalwei has joined #timvideos | 00:31 | |
mithro | shenki: poke? | 02:28 |
---|---|---|
mithro | shenki: Actually that should be my or1k-fixing branch | 02:29 |
mithro | shenki: https://github.com/mithro/HDMI2USB-litex-firmware/tree/or1k-fixing | 02:29 |
tpb | Title: GitHub - mithro/HDMI2USB-litex-firmware at or1k-fixing (at github.com) | 02:29 |
mithro | shenki: Any luck? | 02:59 |
shenki | mithro: okay. and which linux tree? | 03:09 |
mithro | https://github.com/mithro/linux-litex/tree/temp | 03:11 |
tpb | Title: GitHub - mithro/linux-litex at temp (at github.com) | 03:11 |
shenki | $ export JIMMO=1 PORT=/dev/ttyACM1 CPU=or1k PLATFORM=mimasv2 TARGET=base | 03:12 |
shenki | does that look correct? | 03:12 |
mithro | Mimas doesn't work yet | 03:13 |
shenki | which board can I use? | 03:13 |
mithro | Only the Opsis at the moment | 03:13 |
shenki | :( | 03:14 |
shenki | I don't have a power supply at home for that | 03:14 |
mithro | Don't have a 12V supply? | 03:14 |
shenki | I will have to find one | 03:14 |
mithro | I recommend looking at your old routers / switches / etc | 03:15 |
mithro | Yay! tftp booting Linux on the Opsis | 03:19 |
shenki | mithro: nice | 03:23 |
shenki | ok, i have my opsis powered up | 03:24 |
mithro | \o/ | 03:24 |
mithro | export PLATFORM=opsis TARGET=net | 03:24 |
mithro | export PLATFORM=opsis TARGET=net CPU=or1k | 03:24 |
shenki | mithro: hrm. usb is not enumerating | 03:26 |
mithro | shenki: Try moving JFX2-RST to pins 1-2 | 03:26 |
shenki | mithro: hrm. where is that? | 03:28 |
shenki | ah i see | 03:28 |
shenki | mithro: no luck | 03:29 |
mithro | shenki: You are using the large USB port on the front? | 03:30 |
shenki | no :) | 03:31 |
* shenki gets printer cable | 03:31 | |
mithro | shenki: The other one can't be used for programming | 03:31 |
shenki | mithro: cool. which make target should I use to load it up? | 03:33 |
mithro | make flash | 03:33 |
shenki | mithro: that worked. make firmware-connect did not tho | 03:37 |
shenki | mithro: do i need to reset it? | 03:37 |
mithro | shenki: After flashing need to power cycle | 03:37 |
shenki | mithro: is there a button? | 03:37 |
mithro | Nope | 03:37 |
mithro | I need to figure out why | 03:38 |
shenki | mithro: hrm, power cycling didn't seem to work | 03:42 |
mithro | shenki: Once you have power cycled, you do a "make firmare-connect" then hit the button | 03:43 |
shenki | ah, cool | 03:43 |
shenki | working | 03:43 |
shenki | Booting from flash... | 03:43 |
shenki | Loading 81700 bytes from flash... | 03:43 |
shenki | Executing booted program at 0x40000100 | 03:43 |
shenki | then nothing | 03:43 |
mithro | shenki: Yeah - it's jumping into the middle of nowhere now | 03:44 |
mithro | shenki: Do a "hdmi2usb-mode-switch --clear-softcpu-firmware" then power cycle again | 03:44 |
shenki | mithro: cool | 03:46 |
shenki | mithro: any tips for setting up network booting? | 03:46 |
mithro | shenki: Make sure you disable network manager from controlling the device | 03:46 |
mithro | shenki: As it will loose link every reset and network manager gets unhappy | 03:47 |
mithro | Then you should be able to do | 03:47 |
mithro | "make tftpd_start" | 03:47 |
mithro | and "make tftp" | 03:47 |
shenki | mithro: should it work if i directly attach the board to my laptop? | 03:57 |
mithro | shenki: Yes | 03:57 |
shenki | ok. i'm not getting any packets | 03:57 |
mithro | shenki: Assuming you have gigabit Ethernet? | 03:57 |
shenki | yeah | 03:57 |
mithro | What is the console showing? | 03:57 |
shenki | Local IP : 192.168.100.50 | 03:58 |
shenki | Remote IP: 192.168.100.100 | 03:58 |
shenki | Unable to download boot.bin over TFTP | 03:58 |
shenki | Network boot failed | 03:58 |
shenki | No boot medium found | 03:58 |
shenki | 2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN group default qlen 1000 | 03:58 |
shenki | inet 192.168.100.100/32 brd 192.168.100.255 scope global eth0 | 03:58 |
shenki | no-carrier doesn't sound good | 03:58 |
shenki | valid_lft forever preferred_lft forever | 03:58 |
mithro | shenki: What ethtool show? | 03:59 |
shenki | Link detected: no | 03:59 |
shenki | https://pastebin.com/zaftRE3w | 03:59 |
tpb | Title: $ ethtool eth0 Settings for eth0: Supported ports: [ TP ] Supported link mo - Pastebin.com (at pastebin.com) | 03:59 |
mithro | shenki: Are the ethernet lights on? | 04:00 |
shenki | they are on the opsis | 04:00 |
shenki | nothing on the X1's dongle | 04:00 |
shenki | oh, i lied. there are now | 04:00 |
shenki | it wasn't connected properly | 04:00 |
shenki | :) | 04:00 |
shenki | it's sending packets from my laptop really slowly | 04:01 |
shenki | mithro: i assume my laptop should be on 192.168.100.100 ? | 04:01 |
mithro | shenki: or1k booting on mimasv2 ! | 04:01 |
shenki | sweet | 04:01 |
mithro | dies when it tries to do a divide :-/ | 04:02 |
mithro | Oh... maybe it is working... | 04:02 |
mithro | Initializing SDRAM... Memtest OK <-- that seems to take a very long time... | 04:03 |
shenki | mithro: any ideas about my network configuration? | 04:04 |
mithro | 192.168.100.100 is correct | 04:04 |
mithro | What tftp server are you using? | 04:05 |
shenki | not sure. i have my laptop configured to run one via xinetd | 04:05 |
shenki | it's not getting a connection | 04:06 |
mithro | hrm? | 04:06 |
mithro | What does ethtool show now? | 04:06 |
shenki | it shows a link | 04:06 |
mithro | atftpd gives you a bunch of debug info... | 04:06 |
shenki | mithro: does it need to be running at 1000mbit? | 04:12 |
shenki | ethtool says it's at 100 | 04:12 |
mithro | shenki: It should be running at 1000mbit | 04:12 |
mithro | I'm going to run find some lunch | 04:13 |
mithro | be back in 30 minutes | 04:14 |
shenki | mithro: ok. i forced 1000 and turned off negotiation, and i got two packets from the opsis | 04:14 |
mithro | It should have negotiated at 1000 -- I'm a bit worried about your network.... | 04:14 |
shenki | im using the cable you gave me the other day | 04:14 |
mithro | shenki: What does ethtool show? | 04:15 |
mithro | Speed / Duplex have proper values now? | 04:15 |
shenki | sec, have to move inside | 04:20 |
shenki | mithro: ok, it's detecting 1000 now | 04:23 |
mithro | That change anything? | 04:25 |
shenki | getting packets | 04:27 |
shenki | but no tftp connection | 04:27 |
shenki | getting packets full of zero | 04:28 |
shenki | 14:56:44.006739 ARP, Unknown Hardware (0) (len 0), Unknown Protocol (0x0000) (len 0), Unknown (0) | 04:28 |
shenki | 0x0000: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | 04:28 |
shenki | 0x0010: 0000 0000 0000 0000 0000 0000 0000 0000 ................ | 04:28 |
shenki | 0x0020: 0000 0000 0000 0000 0000 0000 0000 .............. | 04:28 |
mithro | Hrm... | 04:30 |
mithro | What does the console say? | 04:30 |
shenki | BIOS> netboot | 04:30 |
shenki | Booting from network... | 04:30 |
shenki | Local IP : 192.168.100.50 | 04:30 |
shenki | Remote IP: 192.168.100.100 | 04:30 |
shenki | Unable to download boot.bin over TFTP | 04:30 |
shenki | Network boot failed | 04:30 |
mithro | Hrm... | 04:31 |
shenki | mithro: i uninstalled my tftp daemon and installed yours, and used your makefile recipie. still didn't work | 04:34 |
shenki | which makes sense, as it looks like i'm getting bad data from the opsis | 04:35 |
shenki | there's no 'tftp get' packet | 04:35 |
shenki | mithro: can we get any info out of the opsis? is there a way to make it respond to ping packets? | 04:39 |
mithro | shenki: I pushed a small fix for the atftpd | 04:43 |
shenki | ok. that's not the issue here, because it's not getting any connections | 04:44 |
mithro | https://www.irccloud.com/pastebin/Mx3AIiWf/ | 04:44 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 04:44 |
mithro | That is what mine looks like? | 04:44 |
mithro | shenki: Can you run memtest? | 04:45 |
shenki | memtest ok | 04:45 |
shenki | $ sudo tcpdump -i eth0 | 04:46 |
shenki | tcpdump: verbose output suppressed, use -v or -vv for full protocol decode | 04:46 |
shenki | listening on eth0, link-type EN10MB (Ethernet), capture size 262144 bytes | 04:46 |
shenki | 15:15:14.130676 ARP, Request who-has aurora tell 192.168.100.50, length 46 | 04:46 |
shenki | 15:15:18.891495 ARP, Unknown Hardware (0) (len 0), Unknown Protocol (0x0000) (len 0), length 46 | 04:46 |
shenki | 15:15:23.651331 ARP, Request who-has aurora tell 192.168.100.50, length 46 | 04:46 |
shenki | 15:15:28.410642 ARP, Unknown Hardware (0) (len 0), Unknown Protocol (0x0000) (len 0), length 46 | 04:47 |
mithro | shenki: Did you get any timing errors when building the gateware? | 04:47 |
shenki | doesnt look like it | 04:48 |
shenki | mithro: ozlabs.org/~joel/opsis_net_or1k.bin | 04:49 |
shenki | mithro: want to try my binary? (can I have yours?) | 04:50 |
mithro | shenki: That your gateware? | 04:50 |
shenki | yeah | 04:50 |
shenki | gate+bios+firm | 04:50 |
shenki | mithro: what does ifconfig usb0 show for you? | 04:51 |
mithro | https://www.irccloud.com/pastebin/Eso7TF13/ | 04:52 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 04:52 |
shenki | mithro: ok. how about ip route show? | 04:52 |
mithro | 192.168.100.0/24 dev usb0 proto kernel scope link src 192.168.100.100 | 04:52 |
shenki | ok. i lost my route before | 04:53 |
shenki | when i moved desks | 04:53 |
shenki | i assume that's the problem | 04:53 |
mithro | maybe? | 04:53 |
shenki | mithro: how do you set up the interface? | 04:53 |
mithro | In /etc/network/interface | 04:53 |
shenki | mithro: ok. can you paste? | 04:53 |
mithro | https://www.irccloud.com/pastebin/izgBBwqV/ | 04:53 |
tpb | Title: Snippet | IRCCloud (at www.irccloud.com) | 04:53 |
shenki | hrm still nothing in my routes | 04:55 |
shenki | mithro: ok, now it works | 04:56 |
shenki | the first time i twas a bad physical connection | 04:56 |
shenki | second time it was no route added | 04:56 |
mithro | :-/ | 04:56 |
shenki | turns out you need both :) | 04:56 |
shenki | ully downloaded 81700 bytes from boot.bin over TFTP | 04:56 |
shenki | Unable to download cmdline.txt over TFTP | 04:56 |
shenki | No command line parameters found | 04:56 |
shenki | Unable to download initrd.bin over TFTP | 04:56 |
shenki | No initial ramdisk found | 04:56 |
shenki | Executing booted program at 0x40000100 | 04:57 |
shenki | it stops there | 04:57 |
mithro | What did you use are your boot.bin? | 04:58 |
shenki | whatever the build process created | 04:58 |
mithro | shenki: Okay, you need to put your linux kernel there | 04:58 |
shenki | add make = ARCH=openrisc | 04:59 |
shenki | add make = /home/joel/dev/timvideos/HDMI2USB-litex-firmware/build/conda/bin/or1k-elf-gcc | 04:59 |
shenki | ops | 04:59 |
shenki | sorry | 04:59 |
mithro | shenki: cp arch/openrisc/boot/vmlinux.bin ~tansell/foss/timvideos/hdmi2usb/HDMI2USB-merge/build/tftpd/boot.bin | 05:01 |
shenki | mithro: do you have a rootfs i can borrow? | 05:01 |
mithro | shenki: I used yours :-P | 05:01 |
shenki | ah | 05:02 |
mithro | shenki-openrisc-rootfs.cpio :-P | 05:02 |
shenki | i have it here still, luckily | 05:02 |
shenki | LD vmlinux.o | 05:02 |
shenki | /home/joel/dev/timvideos/HDMI2USB-litex-firmware/build/conda/bin/or1k-elf-ld: cannot find libgcc.a: No such file or directory | 05:02 |
shenki | mithro: which toolchain are you using? | 05:03 |
mithro | shenki: The one in conda... | 05:03 |
shenki | conda/bin/or1k-elf-ld --version | 05:04 |
shenki | GNU ld (GNU Binutils) 2.28 | 05:04 |
mithro | Yeap | 05:04 |
shenki | boo | 05:04 |
mithro | Why? | 05:04 |
shenki | it doesn't build | 05:04 |
mithro | That is 1 version behind..... | 05:04 |
mithro | shenki: in What way? | 05:05 |
shenki | 15:31 <+shenki> LD vmlinux.o | 05:05 |
shenki | 15:31 <+shenki> /home/joel/dev/timvideos/HDMI2USB-litex-firmware/build/conda/bin/or1k-elf-ld: cannot find | 05:05 |
shenki | libgcc.a: No such file or directory | 05:05 |
shenki | from 2 minutes ago :) | 05:05 |
mithro | Try "conda install gcc-or1k-elf-newlib" | 05:06 |
shenki | ok | 05:06 |
shenki | which toolchain are you using? | 05:06 |
mithro | make KBUILD_IMAGE=zImage CROSS_COMPILE=or1k-elf- ARCH=openrisc | 05:08 |
shenki | mithro: do you have build/conda/bin/../lib/gcc/or1k-elf/5.4.0/libgcc.a in your conda dir? | 05:10 |
shenki | ah. it appears i do now, after installing the netlib toolchain | 05:10 |
shenki | mithro: my conda env is screwed up or something now | 05:14 |
mithro | shenki: Hrm? | 05:14 |
shenki | Python 3.6.2 :: Continuum Analytics, Inc. | 05:14 |
shenki | python (version 3.5) *NOT* found | 05:14 |
shenki | Please try running the /home/joel/dev/timvideos/HDMI2USB-litex-firmware/scripts/download-env.sh script again. | 05:14 |
shenki | it can't find litex in the env i already had entered | 05:14 |
mithro | shenki: Ahh - I fixed that | 05:14 |
shenki | ok. im doing enter env and now it's downloading libgcc | 05:15 |
shenki | and lots of stuff | 05:15 |
*** rohitksingh has joined #timvideos | 05:15 | |
shenki | CondaVerificationError: The package for pyserial located at /home/joel/dev/timvideos/HDMI2USB-litex-firmware/build/conda/pkgs/pyserial-2.7-py35_0 | 05:17 |
shenki | appears to be corrupted. The path 'lib/python3.5/site-packages/serial/urlhandler/__pycache__/protocol_socket.cpython-35.pyc' | 05:17 |
mithro | shenki: Hrm, just "rm -rf build/conda; rm build/Miniconda3-latest-Linux-x86_64.sh" and then run the download-env.sh script again... | 05:17 |
shenki | ok | 05:18 |
shenki | or1k-elf-ld: command not found | 05:27 |
shenki | or1k-elf-ld (version 2.28) *NOT* found | 05:27 |
shenki | i guess i have to install it manually? | 05:27 |
mithro | pj | 05:28 |
mithro | oh | 05:28 |
mithro | export CPU=or1k before running the download-env.sh script | 05:28 |
shenki | $ conda list |grep or1k | 05:28 |
shenki | its' gone? | 05:28 |
shenki | ok | 05:28 |
mithro | I should remove the check which prevents download-env.sh running inside the env probably.... | 05:31 |
mithro | 3717636 bytes takes a long time to upload at 115200 :-/ | 05:33 |
mithro | About 4 minutes apparently.... | 05:34 |
shenki | pretty big. you could use a much smaller initrd, and trim the kernel config | 05:37 |
mithro | No compression | 05:37 |
shenki | mithro: how did you build your .bin? | 05:38 |
shenki | bootconsole [litex_uart_a0] disabled | 05:40 |
shenki | and then junk | 05:40 |
shenki | mithro: is that what you get? | 05:40 |
mithro | shenki: Yeah | 05:40 |
shenki | cool | 05:40 |
mithro | make CROSS_COMPILE=or1k-elf- ARCH=openrisc -j 128 zImage | 05:41 |
shenki | yeah, zImage errored but still created the .bin | 05:42 |
mithro | Yeah | 05:42 |
mithro | if you do a | 05:42 |
mithro | "export FIRMWARE=linux; mkdir build/opsis_net_or1k/software/linux; cp vmlinux.bin build/opsis_net_or1k/software/linux/firmware.bin; make image" you should get an image with the kernel baked in | 05:44 |
mithro | shenki: you should also be able to do ./scripts/build-qemu.sh to get a qemu which is configured in the same way... | 05:50 |
shenki | ok | 05:52 |
shenki | Linux version 4.14.0-rc2-00025-g939421e8a8cb-dirty (joel@aurora) (gcc version 5.4.0 (GCC)) #46 Sun Oct 1 16:19:43 ACDT 2017 | 05:52 |
shenki | i rebased on the latest upstream | 05:52 |
mithro | https://github.com/mithro/qemu-litex/tree/timer-fix <- I think that fixes the litex timer in qemu | 05:55 |
tpb | Title: GitHub - mithro/qemu-litex at timer-fix (at github.com) | 05:55 |
shenki | ok | 05:56 |
mithro | If we can disable the or1k timer, that would be good | 05:56 |
shenki | i thought we were going to go down the or1k timer path for now? | 05:57 |
mithro | shenki: Until we got something booting / going | 05:57 |
mithro | shenki: You got it all going now? | 06:07 |
shenki | got it going until the panic. no userspace | 06:09 |
mithro | Yeah - it panics on real hardware - gets to userspace in qemu | 06:09 |
mithro | shenki: Fixing the uart past post early printk would help us see what the panic is | 06:16 |
shenki | yeah | 06:17 |
shenki | mithro: which device tree file does it use currently? | 06:18 |
mithro | Dunno... the one committed? :-P | 06:20 |
shenki | there are two that you have been modifying | 06:20 |
shenki | it looks like the build process uses or1klitex.dts | 06:20 |
mithro | rm arch/openrisc/boot/dts/or1klitex.dtb.S arch/openrisc/boot/dts/or1klitex.dtb | 06:21 |
mithro | I assume that means we using that? | 06:22 |
mithro | Wouldn't surprise me if the IRQ is configured wrong | 06:22 |
shenki | yeah. i tested by removing or1ksim | 06:22 |
mithro | shenki: Think you can make progress now? | 06:26 |
shenki | yeah | 06:27 |
shenki | i will make sure irqs are working | 06:27 |
shenki | and then look at the serial driver | 06:27 |
shenki | mithro: how did you come up with the changes you made to arch/openrisc/kernel/head.S ? | 09:42 |
shenki | mithro: here's where i got to today https://pastebin.com/LE0VFY8K | 15:18 |
tpb | Title: Executing booted program at 0x40000100 Compiled-in FDT at c02c0b20 Linux versi - Pastebin.com (at pastebin.com) | 15:18 |
*** CarlFK has quit IRC | 16:33 | |
shenki | https://pastebin.com/S4j569dw | 16:34 |
tpb | Title: Executing booted program at 0x40000100 [ 0.000000] Compiled-in FDT at c02c0b - Pastebin.com (at pastebin.com) | 16:34 |
*** sb0 has quit IRC | 17:30 | |
*** fumblehool_ has joined #timvideos | 17:51 | |
*** fumblehool_ has quit IRC | 21:38 | |
*** techman83 has quit IRC | 22:01 | |
*** techman83 has joined #timvideos | 22:03 | |
*** ChanServ sets mode: +v techman83 | 22:03 | |
mithro | shenki: is getting JTAG or arty support more useful for you? | 22:20 |
mithro | Btw, flterm should be able to do gdb pass thru, so if you have kdb working that could also help | 22:21 |
mithro | Btw did you also get qemu working? | 22:21 |
mithro | The changes to head.S are all about adding support for the evbar feature which allows the interrupt vector table to be at a non-zero location | 22:23 |
*** medicalwei has quit IRC | 22:43 | |
*** medicalwei has joined #timvideos | 23:00 |
Generated by irclog2html.py 2.13.1 by Marius Gedminas - find it at mg.pov.lt!