LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-17-2018, 07:16 AM   #1
etonam
LQ Newbie
 
Registered: Jan 2018
Posts: 2

Rep: Reputation: Disabled
Building flashrom for Dos failed


I'm trying to build flashrom 0.9.6 for dos on Ubuntu 14.04 I'm working from Downloads folder. Under Downloads/ I have 5 sub-directories:
Downloads/
libpci/
pciutils-3.1.5/
zlib1.2.11/
libgetopt/
flashrom-0.9.6/
libpci/ is LIBS_BASE. I've installed the .deb packages of djcross-binutils, djcross-gcc, djcross-gcc-tools and djcrx. libgetopt is compiled using make and copied getopt.h to libpci/include and libgetopt.a to libpci/lib. From zlib-1.2.11/ : ./configure, make HOST=i386-djgpp-djgpp CROSS_COMPILE=i586-pc-msdosdjgpp-, make HOST=i386-djgpp-djgpp CROSS_COMPILE=i586-pc-msdosdjgpp- PREFIX=/ DESTDIR=$PWD/../libpci install. But it didn't install under libpci/ but libpci/usr/local So by copy-pasting I brought zlib install back under libpci/.From pciutils-3.1.5/ I entered: make, make ZLIB=yes DNS=yes HOST=i386-djgpp-djgpp CROSS_COMPILE=i586-pc-msdosdjgpp- PREFIX=/ DESTDIR=$PWD/../libpci install install-lib. But there was no libpci.so inside libpci/lib. So I copied the one from Ubuntu into libpci/lib. 'Cause thru my trials I understood that file is needed. Then from flashrom-0.9.6/, make CC=i586-pc-msdosdjgpp-gcc LIBS_BASE=../libpci On Checking if lipci is present and sufficient...no Checking if libpci+zlib are present and sufficient...no ,compilation halted. From libpci/ ,I renamed include/ or include/pci and flashrom couldn't locate the header files anymore, same when changing their location down to libpci/include . So flashrom is pointing at a certain path to find the files it needs. I have all the 3 (besides the headers) files of libpci under libpci/lib: libpci.a, libpci.so and libpci.pc .I tried thru reading the makefile and the header files to find what could help me know the required path for these libpci files so flashrom can find them, so far to no avail. I hope someone here can help me get the correct path under libpci/lib. Else I think I could find that out with a debugger. But I don't know which one and how to use it yet. Your input is welcome.
Etonam
 
Old 01-20-2018, 04:51 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,297

Rep: Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322Reputation: 2322
Personally I doubt the wisdom of putting huge effort into this.


The foundation stone of DOS was a 16 bit bus, and 640k memory. The CPUs had extra address bus lines, and these were conscripted as digital I/O (notably A20), and upgrading/expansion was designed OUT in the silicon. DOS ran happily there - like the Stone Age of computing.


So why build a further complicated mess of software to support running some little POS software from the Stone Age?
 
Old 01-22-2018, 07:52 AM   #3
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
There is a good reason for using DOS for flashing. It uses few resources and therefore runs little risk of the flash interfering with running processes. I would always use the least resource usage program I could to flash things.
 
Old 01-22-2018, 11:24 AM   #4
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
any reason you are not using the packagemanager ?
https://launchpad.net/ubuntu/+source/flashrom
 
Old 01-22-2018, 12:52 PM   #5
dave@burn-it.co.uk
Member
 
Registered: Sep 2011
Distribution: Puppy
Posts: 601

Rep: Reputation: 172Reputation: 172
Reread my POST
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Flashrom 0.9.7 Refines Support For A Lot Of Chips LXer Syndicated Linux News 0 08-15-2013 05:30 AM
FlashROM interface with Embedded board ravi_chobey Programming 0 12-05-2012 04:44 PM
flashrom EEPROM/flash device found dannyk1 Linux - Hardware 2 12-27-2010 05:13 PM
LXer: Flashrom brings seamless BIOS flashing to Linux PCs LXer Syndicated Linux News 1 06-04-2009 03:50 PM
Mounting Dos partition failed!! RKris Linux - General 1 09-18-2002 09:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:49 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration