HP1670x HPUX from scratch - Page 1
Forum section: electronics / testgear

author: fisafisa
author_rank: Regular Contributor
timestamp: August 07, 2023, 12:26:40 pm
content: HiI have been trying for a little while to load the HP16702B software on a larger hard disk.The limitations of the logical analyzer installation disk are such that you cannot really go higher than 16G.Checkhttps://www.mattmillman.com/16702b/The problem is that with PE size of 4M and max PE of about 4000 the LVM group size is thus limited.The installer forces the PE size to 4M even if you try to increase it. It seems it is a crippled version of the HPUX installer with some hacks.I have finally succeeded installing on a 300G SCA disk, and I will be explaining how.What I did is installing HP-UX 10.20 on the disk, having set the PE size to 128M.After that I installed from a different CD the C C++ development platforms.Finally I have installed the HP16700 software which is located in the installation CD but on the subfolder LA_CDROMThe installation progresses until it stops when trying to build the kernel: mk_kernel complains of a missing symbol referenced to by the libstarship.a (logic analyzer library)the missing symbol is set_caps_lightThe hpux library in fact contains a symbol with a similar name : kbd_set_caps_lighthttps://www.unix.com/hp-ux/162062-hp-ux-10-20-mk_kernel-failure.htmlTo circumvent this problem I created a small .c program that contains the missing function: set_caps_light. My function does nothing.I have inserted the module inside the libstarship.a library using ar -q libstarship.a mymodule.omk_kernelthencp /stand/vmunix /stand/vmunix.oldmv /stand/build/vmunix_test /stand/vmunixRestart the installation that was suspended.If you want to preserve the hpux interface then follow also:http://www.perdrix.co.uk/hp16700/Before starting the installation make a back-up of the files that are described in perdrix webpage.The installer will overwrite them, so you restore them before rebooting.Then you reboot and it worked.FilippoI will post more details later

author: aeg
author_rank: Regular Contributor
timestamp: August 07, 2023, 10:24:29 pm
content: Sorry to steal your thunder, but you don't need to do that. Just patch the 16702 installation media with the attached config file.Also, if you're doing C development, you may want to use H. Merijn Brand's gcc package instead of HP ANSI C. HP ANSI C has optimizer bugs that can result in wrong object code.

author: fisafisa
author_rank: Regular Contributor
timestamp: August 08, 2023, 11:15:07 am
content: Thanks,this is going to be very useful.On the other hand, I want to be able to add later os patches, exp on networking.without the modification to the libstarship, the kernel will not be able to be built anymore.Filippo

author: aeg
author_rank: Regular Contributor
timestamp: August 09, 2023, 10:12:42 am
content: On my unit, mk_kernel works without modifying libstarship.a. The resulting kernel has a set_caps_light function, 142 bytes of code. It looks like it comes from s_hil_code.o in /usr/conf/lib/libhp-ux.a. libhp-ux.a is 8633432 bytes on my unit.

author: fisafisa
author_rank: Regular Contributor
timestamp: August 09, 2023, 12:52:33 pm
content: once I apply some of the more recent hpux 10.20 patches the function changes name.I was not able to pin-point the patch that did this

author: aeg
author_rank: Regular Contributor
timestamp: August 10, 2023, 07:44:48 am
content: I guess you can find the guilty patch with "swlist -l file | grep libhp-ux.a". For me it comes back with "OS-Core.CORE-KRN". According to "swlist -l fileset OS-Core.CORE-KRN", I have version B.10.20 of OS-Core.CORE-KRN.I wonder why libstarship calls set_caps_light? Do the run and stop lights work with your stub?