Re: cross compiling for s390
I ran into something interesting today with zFCP disk. I've assigned a LUN to a linux server and it worked great. I did the following. 1. Set the adapter on line with chccwdev -e command 2. Added target port to FCP adapter by echoing port_add into wwpn. ex. echo 0x50060e800571f007 port_add 3. I cd to new port directory and added FCP LUN to that port by echoing unit_add into new port directory.\ ex. Echo 0x000b unit_add 4. SCSI disk was available. I validated it with lsscsi command. I noticed that the LUN size was incorrect so I wanted to change the adapter to use a different LUN. In this case 0x0007. I removed the old LUN and changed added the new LUN with the following script. #!/bin/bash OLD_PWD=`pwd` DIR=/sys/bus/ccw/drivers/zfcp DROP=0x000b ADD=0x0007 PORT1=0x50060e800571f007 PORT2=0x50060e800571f017 PORT3=0x50060e800571f006 PORT4=0x50060e800571f016 echo 1 /sys/bus/scsi/devices/0\:0\:0\:1/delete echo 1 /sys/bus/scsi/devices/1\:0\:0\:1/delete echo 1 /sys/bus/scsi/devices/2\:0\:0\:1/delete echo 1 /sys/bus/scsi/devices/3\:0\:0\:1/delete echo $DROP $DIR/0.0.dc00/$PORT1/unit_remove echo $DROP $DIR/0.0.dd00/$PORT2/unit_remove echo $DROP $DIR/0.0.de00/$PORT3/unit_remove echo $DROP $DIR/0.0.df00/$PORT4/unit_remove echo $ADD $DIR/0.0.dc00/$PORT1/unit_add echo $ADD $DIR/0.0.dd00/$PORT2/unit_add echo $ADD $DIR/0.0.de00/$PORT3/unit_add echo $ADD $DIR/0.0.df00/$PORT4/unit_add It shows the new LUN. I validated it with the lszfcp -D command. Output below: 0.0.dc00/0x50060e800571f007/0x0007 0:0:0:1 0.0.dd00/0x50060e800571f017/0x0007 1:0:0:1 0.0.de00/0x50060e800571f006/0x0007 2:0:0:1 0.0.df00/0x50060e800571f016/0x0007 3:0:0:1 So you can see that the lun is now 0X0007. When I reboot, it goes back to 0x000b. What am I missing? To get around this issue, I had to move LUNs around on the disk subsystem side. Can someone give me a good process of removing LUNs and then readd them or tell me what I'm missing. Regards, Scott Shumate Software Systems Prog Spec Branch Bank Trust Assistant Vice President Mainframe Support Mail Code: 100-99-09-10 Work: (252) 246-2306 Cell:(252) 373-9605 -- .~. /\/\ /( )\ ^^-^^ Linux on Systems Z - -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: cross compiling for s390
Last time I was on decaf and had to compile on x86, I used that and back then it worked fine for me: http://debian.speedblue.org/ Note that mainframes tend to have more CPU cores than laptops, which is good for compiler performance when using make -j number ;-) with kind regards Carsten Otte IBM Linux Technology Center / Boeblingen lab -- omnis enim res, quae dando non deficit, dum habetur et non datur, nondum habetur, quomodo habenda est adam shea ajsheamail@gmail .com To Sent by: Linux on LINUX-390@vm.marist.edu 390 Port cc linux-...@vm.mar ist.edu Subject cross compiling for s390 04.04.2011 21:01 Please respond to Linux on 390 Port linux-...@vm.mar ist.edu I would like to set up gcc on my laptop to cross compile for s390 architecture. Has anyone attempted this? Pointers and words of wisdom would be appreciated greatly. -ajs -- Intelligence is the ability to avoid doing work, yet getting the work done. -Linus Torvalds -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: cross compiling for s390
On Tue, Apr 5, 2011 at 8:52 AM, Carsten Otte co...@de.ibm.com wrote: Note that mainframes tend to have more CPU cores than laptops, which is good for compiler performance when using make -j number ;-) The tiny geeky part in me could enjoy using a full z196 to cross compile for an ARM phone :-) It is very elegant that the toolchain actually supports such a process. When I did my cross compiles back in 1999, the hand-me-down laptop outperformed the G4 CPU by enough that I could afford to share over NFS and do unzipping and compiles on the latop :-) That clearly shows the expectation problems we had with Linux performance on the early mainframe CPUs. The balance now is the other way: my current laptop may be 2 times as fast, but the modern mainframe CPU gained a factor 20 since then. I envy my friends with a z196. | Rob -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: cross compiling for s390
Adam, if you run into any problems, I monitor both this and the crosstool-NG list. I contributed the s390 samples to crosstool-NG. Harold Grovesteen James Tison wrote: There is a next gen release of this package out, called crosstool-NG. It has a Mercurial repository available at http://ymorin.is-a-geek.org/hg/crosstool-ng It is much nicer and requires much less knowledge to operate than the old crosstool. Regards, --Jim-- -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/ -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
cross compiling for s390
I would like to set up gcc on my laptop to cross compile for s390 architecture. Has anyone attempted this? Pointers and words of wisdom would be appreciated greatly. -ajs -- Intelligence is the ability to avoid doing work, yet getting the work done. -Linus Torvalds -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: cross compiling for s390
On Mon, Apr 4, 2011 at 9:01 PM, adam shea ajsheam...@gmail.com wrote: I would like to set up gcc on my laptop to cross compile for s390 architecture. Has anyone attempted this? Pointers and words of wisdom would be appreciated greatly. It takes a lot of patience and a steady hand. Look into Dan Kegel's crosstool to simplify the process. http://kegel.com/crosstool/ I still recall my the time when I successfully generated the s390 version of glibc, but one typo in the command made it replace the Intel binaries on the host. The system obviously came to a grinding halt and I had to re-install Linux :-( Rob -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/
Re: cross compiling for s390
There is a next gen release of this package out, called crosstool-NG. It has a Mercurial repository available at http://ymorin.is-a-geek.org/hg/crosstool-ng It is much nicer and requires much less knowledge to operate than the old crosstool. Regards, --Jim-- -- For LINUX-390 subscribe / signoff / archive access instructions, send email to lists...@vm.marist.edu with the message: INFO LINUX-390 or visit http://www.marist.edu/htbin/wlvindex?LINUX-390 -- For more information on Linux on System z, visit http://wiki.linuxvm.org/