Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 22 Dec 2014, 19:38
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Running Precise 5.4.93 (k 3.8.0) from an f2fs volume on SDHC
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Author Message
ETP


Joined: 19 Oct 2010
Posts: 586
Location: UK

PostPosted: Sat 23 Feb 2013, 12:36    Post subject:  Running Precise 5.4.93 (k 3.8.0) from an f2fs volume on SDHC
Subject description: 23rd Feb 2013 Experimental – Also PHATSlacko 12/03
 

Please see Barry’s post for the background to this topic: http://bkhome.org/blog2/?viewDetailed=00142

For current benchmarking of f2fs on SSD and SDHC see:
www.phoronix.com/scan.php?page=article&item=linux_f2fs_sdhc&num=1

This version of Precise therefore includes partial support for f2fs but there is, AFAIK no boot-loader currently available capable of actually running on f2fs. For the purpose of this experiment I therefore elected to use my favourite technique which I term a “mixed frugal install”. In this case the kernel and initrd.gz are held on a bootable Fat 32 USB2 stick with ultimately the main sfs and save-file being copied over to the f2fs volume on the SDHC. I used a 4GB class 4 card but if you have a class 10 card so much the better.
Syslinux 4.04 was used to make the USB stick bootable with vesamenu.c32 providing the menu. You should note that GPARTED does not yet support f2fs and will only show such a partition as “unknown”.

STEPS:

1: Perform a manual frugal install of Precise to the USB stick. Put all the puppy files in a subdirectory named p5493.
Install a few pets and reboot it several times to ensure that you have a valid installation and Ext4 savefile. In the screenshot my stick shows up as sdb1. (YMMV)
A 1GB Ext4 savefile should suffice. Install pupsaveconfig-2.2.5.pet and set it to “ask at shutdown” (This will prevent any saves whilst you are copying files later)
The code for the first syslinux menu option (booting totally from the USB) was as follows:

EXTRACT FROM SYSLINUX.CFG (First menu choice)

Code:
LABEL 5493USB
MENU LABEL Prec 5493k3.8 USB 21/02/13
KERNEL /p5493/vmlinuz
APPEND initrd=/p5493/initrd.gz pmedia=usbflash psubdir=/p5493


2: Burn the ISO to a CD or DVD RW and put it to one side as you will need it later. If you do not have an optical drive repeat STEP 1 to prepare a second identical USB stick or clone the first stick to a second stick once it has been set up. (win32diskimager-v0.7-binary can be used for cloning if you run XP)

3: Boot into Precise from the stick using the first menu option and using GPARTED delete any partitions on the SDHC card. Then in terminal issue the following command to format the card:

Code:
mkfs.f2fs -l f2fs /dev/sdf1

N/B
This assumes that the card is seen as sdf1 which it was in my case. Change “sdf1” depending on how your card appears. The output of the command will indicate success or failure. Check that you can mount it, then dismount it and remove the card.

4: Before completely shutting down your PC and removing ALL sticks and cards if you have any Precise sfs or save files on any of your hard discs first rename them. In my case Precise 5.4.3 was present and I renamed the files as follows:

HARD DRIVE
xprecisesave-pgb.4fs
xpuppy_precise_5.4.3.sfs

(This will remove any possibility of them being loaded or upgraded when you next boot from the CD)

5: Boot from the optical media that you burnt in step2 and complete the initial dialogues.
Insert your stick noting how it appears, then insert your f2fs SDHC card once again noting how it appears.

6: Create a p5493 directory on the card then copy from the USB stick the main sfs and savefile into it. (They cannot be copied successfully on the fly from a live running stick hence the need for the CD or a second “clone stick” that is f2fs capable)

7: Add the following second menu choice to your syslinux.cfg on the USB stick, changing sdf1 to suit your system if need be.

EXTRACT FROM SYSLINUX.CFG (Second menu choice)

Code:
MENU SEPARATOR

LABEL 5493USB
MENU LABEL Prec 5493 SD f2fs 22/02/13
KERNEL /p5493/vmlinuz
APPEND initrd=/p5493/initrd.gz pmedia=usbflash pupsfs=sdf1:/p5493/puppy_precise_5.4.93.sfs pdev1=sdf1


8: Dismount both the card and the stick then shutdown without saving, ensuring that you remove the CD.

9: Power up and select the second option on the menu to load up from the f2fs SDHC.
Revert any files that you renamed to their original names.

Final thoughts:

Do not attempt this if you are not totally comfortable with any of the steps. It is highly experimental and very much proof of concept. I propose to run this for a few weeks as
both woof and f2fs support are in a state of flux and further changes to both are more than likely. Ultimately I hope to create an f2fs partition on my NTFS SSD and to copy the relevant files over to that.
Small.JPG
 Description   
 Filesize   63.9 KB
 Viewed   4093 Time(s)

Small.JPG


_________________
Regards ETP
Accessibility Pups: -- Magoo -- The Pup With No Name -- MouseCam -- Obedient

Last edited by ETP on Sat 16 Mar 2013, 05:51; edited 4 times in total
Back to top
View user's profile Send private message 
BarryK
Puppy Master


Joined: 09 May 2005
Posts: 7100
Location: Perth, Western Australia

PostPosted: Sat 23 Feb 2013, 19:12    Post subject:  

ETP,
A good start!

The way to go I think, is to create two partitions on the SDHC card, or whatever media you want to boot off.

The first will be fat16 and be just big enough to have vmlinuz.

The second partition will occupy the rest of the media and will be f2fs. This will have a full installation of Puppy, that is, just like a full hard drive installation, which basically means the contents of the puppy.sfs file copied to the partition.

The first partition will be setup with grub or syslinux or whatever.

This is my plan anyway, haven't done it yet.

That would be like a normal full hd installation, but we can also do it our puppy-way, with initrd and puppy.sfs, and the session saved to the entire f2fs partition. That way, we have the aufs layered f.s. and the benefit of being able to load extra sfs files.

_________________
http://bkhome.org/news/
Back to top
View user's profile Send private message Visit poster's website 
ETP


Joined: 19 Oct 2010
Posts: 586
Location: UK

PostPosted: Sun 24 Feb 2013, 04:50    Post subject: Running Precise 5.4.93 (k 3.8.0) from an f2fs volume on SDHC  

Hi Barry,

The two partition approach had also been my favoured method that I tried first, but I could not get my BIOS to boot from it. (Fat32/f2fs)

I should explain however that my old Phoenix PG 6.00 BIOS is a quirky beast with “something of the night” about it. With any removable media I have to first use the HP Utility on the media in order to persuade the BIOS to see the media as a hard drive. It simply will not boot from it unless it sees it as such.

If anyone with a less quirky BIOS wants to try the two partition approach the boot code would be similar to the following:

Code:
LABEL 5493USB
MENU LABEL Prec 5493k3.8 USB 21/02/13
KERNEL /p5493/vmlinuz
APPEND initrd=/p5493/initrd.gz pmedia=usbflash pupsfs=sdf2:/p5493/puppy_precise_5.4.93.sfs psavemark=2

_________________
Regards ETP
Accessibility Pups: -- Magoo -- The Pup With No Name -- MouseCam -- Obedient
Back to top
View user's profile Send private message 
smokey01


Joined: 30 Dec 2006
Posts: 1857
Location: South Australia

PostPosted: Sun 24 Feb 2013, 05:42    Post subject:  

I haven't tried to boot it from a USB yet but it works fine in VirtualBox.
_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
ETP


Joined: 19 Oct 2010
Posts: 586
Location: UK

PostPosted: Tue 26 Feb 2013, 03:32    Post subject: Running Precise 5.4.93 (k 3.8.0) from an f2fs volume on SDHC
Subject description: UPDATE ON PROGRESS.
 

Having finally wrestled my truculent BIOS into submission, I can report that 5493 is running fine on a 4GB SDHC card with two partitions. The first is a 16 MB fat partition, the second is f2fs taking up the remainder of the card. This is not yet a full install as Barry envisages. Rather, it is a small step in the right direction with the main sfs and savefile being held on the f2fs partition. As such it helps towards validating his proposal.

A full copy of the relevant syslinux.cfg is reproduced at the end of this post.

For the benefit of anyone wanting to try this approach I have prepared a 16 Meg image file that can in theory, be used to make any SD card or USB stick bootable and will be perceived by the BIOS as a hard disc.
It contains the kernel and initrd.gz from 5493, all the required syslinux files including the cfg below and two high quality splash screens. As an added bonus it also contains the grub files and syntax to dual boot XP with nothing to add or change on your hard drive.

The image file (16Meg5493.img) together with the XP utility to flash the image on to the target device (win32diskimager-v0.7-binary) are available on:

www.mydrive.ch

Guest login name = maddog@puppy4
Password= maddog

Win32diskimager is in ZIP form & just needs extracting. It does not require installation.

Procedure for using image file:

1. Delete all partitions on your target device.

2. Unplug any sticks or cards other than your target device.

3. In XP use Win32diskimager to write the image to the target.

4. Boot from your CD of 5493 using the boot-code “puppy pfix=ram”. Your device should appear as sdb1. Use GPARTED to format the second partition as EXT4. (This is vital to create the drive icon and node for sdb2)

Note that the first partition is tiny and GPARTED will not recognise the vfat format as it is less than 32 Meg.

5. Exit GPARTED and restart X (drive icons for sdb1 and sdb2 should now be visible)

6. In terminal issue the command:

Code:
mkfs.f2fs -l f2fs /dev/sdb2


7. Extract the cd then reboot ensuring that your target device is at the top of your BIOS boot order. If you can boot and get to the menu you are almost there. Press the down arrow to stop the countdown then select the “Power off” menu choice.

8. Finally boot from the CD again using “puppy pfix=ram” and create a p5493 folder on the f2fs partition. Copy your main sfs and savefile into this new folder.

Code:
#4GB SDHC CARD WITH 16 MEG FAT16 1st PARTITION & 2nd PARTITION F2FS
#Splash screen with RED text & beaker2 background (1024x768)
# Splash screen with RED text & beach background (1024x768)
DEFAULT /vesamenu.c32
PROMPT 0
TIMEOUT 120
MENU RESOLUTION 1024 768
# MENU BACKGROUND /beaker2.jpg
MENU BACKGROUND /beach.png

MENU WIDTH 30
MENU MARGIN 0
MENU ROWS 15
MENU HELPMSGROW 19
MENU TIMEOUTROW 20
MENU TABMSGROW 21
MENU CMDLINEROW 23
MENU HSHIFT 46
MENU VSHIFT 5

   menu color screen   37;40      #00000000 #00000000 none
   menu color border   30;44      #00000000 #00000000 none
   menu color title   1;36;44    #00000000 #00000000 none
#   menu color unsel   37;44      #ff6a6a6a #00000000 none
   menu color unsel    1;36;44    #fc0000 #00000000 std   
   menu color hotkey   1;37;44    #ff6a6a6a #00000000 none
   menu color sel      7;37;40    #ffffffff #ff6a6a6a none
   menu color hotsel   1;7;37;40  #ff808080 #ff6a6a6a none
   menu color scrollbar   30;44      #00000000 #00000000 none

   menu color tabmsg   31;40      #aaaaaaaa #00000000 none
   menu color cmdmark   1;36;40    #ffff0000 #00000000 none
   menu color cmdline   37;40      #aaaaaaaa #00000000 none
   menu color pwdborder   30;47      #ffff0000 #00000000 std
   menu color pwdheader   31;47      #ffff0000 #00000000 std
   menu color pwdentry   30;47      #ffff0000 #00000000 std
#   menu color timeout_msg   37;40      #aaaaaaaa #00000000 none
   menu color timeout_msg   37;40      #fc0000 #00000000 none
   menu color timeout   1;37;40    #ffaaaaff #00000000 std
   menu color help      37;40      #aaaaaa00 #00000000 none
   menu color msg07   37;40      #90ffffff #00000000 std

LABEL 5493SDHC
MENU LABEL Prec5493k3.8 SDHC 25/02/13
KERNEL /p5493/vmlinuz
APPEND initrd=/p5493/initrd.gz pmedia=usbflash pupsfs=sdb2:/p5493/puppy_precise_5.4.93.sfs psavemark=2

MENU SEPARATOR

LABEL grub
MENU LABEL XP Pro            28/07/12
KERNEL /boot/grub/grub.exe --config-file="map (hd1) (hd0);map (hd0) (hd1);map --hook;chainloader (hd0)+1"

MENU SEPARATOR

LABEL reboot
MENU LABEL Reboot
KERNEL /boot/grub/grub.exe --config-file="reboot"

MENU SEPARATOR

LABEL off
MENU LABEL Power Off
KERNEL /boot/grub/grub.exe --config-file="halt"
comboshot.png
 Description   
 Filesize   137.27 KB
 Viewed   3692 Time(s)

comboshot.png


_________________
Regards ETP
Accessibility Pups: -- Magoo -- The Pup With No Name -- MouseCam -- Obedient

Last edited by ETP on Tue 12 Mar 2013, 10:30; edited 4 times in total
Back to top
View user's profile Send private message 
ETP


Joined: 19 Oct 2010
Posts: 586
Location: UK

PostPosted: Thu 07 Mar 2013, 04:27    Post subject: Running Precise 5.4.93 (k 3.8.0) from an f2fs volume on SDHC
Subject description: Thoughts and clarification.
 

Win32diskimager

In my previous post dated 26th Feb 2013 I mentioned that the image technique could in theory, be used on any card or stick. I have since then, using the same 16 Meg image file, produced a 4GB USB stick in an identical fashion.

It has proven to be a very useful method and with a more generic 256 Meg image could possibly be used as an alternative way of distributing most pups. Any stick or card so produced would be bootable and contain everything needed including the kernel, main sfs and syslinux menu system. In addition to completing the first run dialogues one would also have to format the rest of the device as ext4 using Gparted ready to receive the save file once created.

Gparted

Gparted is not f2fs aware. Nor can it understand the vfat format of a partition as small as 16 Meg. For clarification the following shows what it will display and although alarming at first sight is in fact correct.
gparted_view.JPG
 Description   
 Filesize   90.13 KB
 Viewed   3127 Time(s)

gparted_view.JPG


_________________
Regards ETP
Accessibility Pups: -- Magoo -- The Pup With No Name -- MouseCam -- Obedient

Last edited by ETP on Tue 12 Mar 2013, 10:29; edited 3 times in total
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Sun 10 Mar 2013, 09:42    Post subject:  

Hello ETP

Very nice work,, inspiring too, Smile

I have just built a POC Slacko with k3.8.2 with all the f2fs capability. Works too.

I decided to approach things completely differently.

Given that no bootloader is f2fs capable then we are stuck with vfat to boot. Well, ext2(3,4) is a possibility but for simplicity (translate = noob compat) vfat is easy.

I tried and tried to do in one step an install with syslinux, even the latest but it kept failing. Not necessarily a syslinux problem, perhaps the way I was trying to bend it.

What I ended up doing was a 500M vFat partition to boot the RO stuff (vmlinuz, initrd,gz, main sfs and also an adrive sfs) with the save file on the f2fs, using grub4dos as the bootloader.. (I much prefer syslinux, but I was getting short on time and I knew what would work).

I'm more or less happy with the result and when (time permitting) I refine the result I'll post further findings.

Thanks for getting the ball rolling!

"The rolling stone gathers no moss"

Laughing

Cheers!

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
ETP


Joined: 19 Oct 2010
Posts: 586
Location: UK

PostPosted: Tue 12 Mar 2013, 04:45    Post subject: PHATSlacko-5.5.00-SCSI  

Hi 01Micko,

PHATSlacko is stunning and very quick for a fully loaded pup. Thanks to you “Puppy” has just taken another giant leap forward. Thanks also for posting the patched Gparted f2fs aware pet in your thread. I look forward to testing it.

Swiftly “rolling” on I yesterday, applied my “16Meg flashing technique” to PHATSlacko and have everything, apart from the kernel, running off the f2fs partition of a 2GB USB stick so created.
I have greatly simplified the syntax, using purely syslinux and have made it more generic so that it can be used for any pup, f2fs aware or not. In particular the references to drives within syslinux.cfg have been eliminated. As previously, the image produces a bootable card or stick and includes the ability to dual boot XP or Win7 with nothing to add or change on your hard drive.

A full copy of the relevant syslinux.cfg is reproduced at the end of this post.
The image contains the kernel and initrd.gz from PHATSlacko,

The image file (16MegPHATSlacko.img) together with the XP utility to flash the image on to the target device (win32diskimager-v0.7-binary) are available on:

www.mydrive.ch

Guest login name = maddog@puppy4
Password= maddog

Win32diskimager is in ZIP form & just needs extracting. It does not require installation.

Procedure for using dual boot image file:

1. Delete all partitions on your target device.

2. Unplug any sticks or cards other than your target device.

3. In XP use Win32diskimager to write the image to the target.

4. Boot from your CD of PhatSlacko using the boot-code “puppy pfix=ram”. Your device should appear as sdb1. Use GPARTED to format the second partition as EXT4. (This is vital to create the drive icon and node for sdb2)

5. Exit GPARTED and restart X (drive icons for sdb1 and sdb2 should now be visible)

6. In terminal issue the command:


Code:
Code:
mkfs.f2fs -l f2fs /dev/sdb2



7. Restart X, then mount the CD icon (SR0) by clicking on it once.

8. Create a pup1 directory in the f2fs partition then copy the following files from the CD into that directory.
adrv_slacko_5.5.00.sfs
puppy_slacko_5.5.00.sfs

9. Dismount all drives then shutdown without saving. When you boot from your card or stick create your savefile in the pup1 directory on the f2fs partition.

Code:
#Splash screen with RED text & beaker2 background (1024x768)
UI vesamenu.c32
DEFAULT 533
PROMPT 0
TIMEOUT 220
MENU RESOLUTION 1024 768
MENU BACKGROUND /splash/beaker2.jpg
# MENU BACKGROUND /splash/beach.png

MENU WIDTH 30
MENU MARGIN 0
MENU ROWS 15
MENU HELPMSGROW 19
MENU TIMEOUTROW 20
MENU TABMSGROW 21
MENU CMDLINEROW 23
MENU HSHIFT 20
MENU VSHIFT 5

   menu color screen   37;40      #00000000 #00000000 none
   menu color border   30;44      #00000000 #00000000 none
   menu color title   1;36;44    #00000000 #00000000 none
#   menu color unsel   37;44      #ff6a6a6a #00000000 none
   menu color unsel    1;36;44    #fc0000 #00000000 std   
   menu color hotkey   1;37;44    #ff6a6a6a #00000000 none
   menu color sel      7;37;40    #ffffffff #ff6a6a6a none
   menu color hotsel   1;7;37;40  #ff808080 #ff6a6a6a none
   menu color scrollbar   30;44      #00000000 #00000000 none

   menu color tabmsg   31;40      #aaaaaaaa #00000000 none
   menu color cmdmark   1;36;40    #ffff0000 #00000000 none
   menu color cmdline   37;40      #aaaaaaaa #00000000 none
   menu color pwdborder   30;47      #ffff0000 #00000000 std
   menu color pwdheader   31;47      #ffff0000 #00000000 std
   menu color pwdentry   30;47      #ffff0000 #00000000 std
#   menu color timeout_msg   37;40      #aaaaaaaa #00000000 none
   menu color timeout_msg   37;40      #fc0000 #00000000 none
   menu color timeout   1;37;40    #ffaaaaff #00000000 std
   menu color help      37;40      #aaaaaa00 #00000000 none
   menu color msg07   37;40      #90ffffff #00000000 std

LABEL 5500
MENU LABEL PHATSlacko-5.5.00 SD/SDHC/USB
KERNEL /pup1/vmlinuz
APPEND initrd=/pup1/initrd.gz pmedia=usbflash psavemark=2

MENU SEPARATOR

LABEL windows
MENU LABEL Boot Windows XP or 7
COM32 chain.c32
APPEND hd1 1 swap

MENU SEPARATOR

LABEL reboot
MENU LABEL Reboot
COM32 reboot.c32

MENU SEPARATOR

LABEL off
MENU LABEL Power Off
COMBOOT poweroff.com
PHATSlacko_16Meg_vfat_partition.png
 Description   Files in 16Meg image.
 Filesize   1.71 KB
 Viewed   3235 Time(s)

PHATSlacko_16Meg_vfat_partition.png


_________________
Regards ETP
Accessibility Pups: -- Magoo -- The Pup With No Name -- MouseCam -- Obedient
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Sat 23 Mar 2013, 20:41    Post subject:  

Hello ETP et al,

I downloaded your img file. I decided to see if I could script what you have and I succeeded, in a round a bout sort of way. As I do, I changed stuff [Laughing ] and removed some capabilities that your image has but also added a possible capability of dual booting the media. (This is not implemented, we'll see if the thing is stable first, plus see if it needs more features).

The end result is f2fs-usb-installer 336 KB

It should work with PHATSlacko and Upup-Precise >=3.8.2 as it requires at least a 3.8 kernel with f2fs enabled. The script does do a check for that. It also requires gparted-0.14.1-i686_F2FS-s14 for PHATSlacko and gparted-0.14.1-i686_F2FS-precise.pet for Upup-Precise-3.8.2 (first version) as subsequent versions of Upup-Precise include GParted-14.1 patched for f2fs, currently Upup-Precise is at 3.8.3.1.

The script is a wizard format and prompts you to create 2 partitions on the USB drive (didn't test SD card, probably will work), one of 32MB vfat (future expansion to dual/multiboot taken into account) and the other, rest of the device as f2fs. It then offers you a choice of where to copy the files, CD, ISO image or directory (which can be an existing frugal install). Appropriate locations containing the files are mounted, the appropriate partitions are mounted, files are copied and a syslinux.cfg is generated. The package includes extlinux, syslinux, mbr.bin, vesa-menu.c32, chain.c32 and some images for the boot screen, the last stage you get to choose that image, and you could add others if you want, as long as they work.

WARNING: This must be treated as experimental and as such is not recommended on a production system.

NOTE: The syslinux binaries are from version 4.03 in the Slackware repo. Some do overwrite the native puppy (old) bins.

Enjoy!

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
pemasu


Joined: 08 Jul 2009
Posts: 5465
Location: Finland

PostPosted: Sun 24 Mar 2013, 04:26    Post subject:  

ETP and 01micko. Thanks !
It just works !
http://www.murga-linux.com/puppy/viewtopic.php?p=694288#694288
Back to top
View user's profile Send private message 
ETP


Joined: 19 Oct 2010
Posts: 586
Location: UK

PostPosted: Sun 24 Mar 2013, 15:26    Post subject: f2fs-usb-installer
Subject description: Testing
 

Hi 01Micko,

I loaded it into Upup-Precise 3.8.3.1 and pointed it at a copy of the 3.8.3.1 ISO to produce a hybrid bootable 4GB SDHC card.

Not surprisingly my quirky BIOS refused to boot from it, as I always have to first prepare any card or stick with the HP Utility before applying syslinux.

It booted fine on a relatively new borrowed netbook however and all the menu options worked as expected.

I have in the past booted Puppy on this Intel Atom N570 1.6GHz both purely from USB stick and in a mixed install with the kernel on USB and the savefile and main sfs on the NTFS data partition. It is not a fast machine and I was stunned when it appeared to boot faster from the hybrid class 4 SDHC card. F2fs is however primarily targeted at SD cards for use in (Samsung) phones and cameras and its benefits truly became apparent.

Thanks for a great utility which I commend particularly for SDHC cards.

_________________
Regards ETP
Accessibility Pups: -- Magoo -- The Pup With No Name -- MouseCam -- Obedient
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Sun 24 Mar 2013, 16:20    Post subject:  

Hi ETP, pemasu

Thanks for giving it a spin!

I have the dual boot capability working Cool . However, I want to get it working with the stock puppy binaries, if nothing more than to remove the bins from the package. Problem with the stock pup version of syslinux though is that it is very cut down and doesn't support vesamenu. This should be fine if you just want a single boot media. Also, Barry is more likely to look at the program this way and may get it working for Quirky, or even a future ARM arch pup.

What I can do is put in a test for syslinux version and inform the user about the above issue letting them know that they can get a later version of syslinux from PPM (if they are using upup/PHAT) if they want dual boot capability.
---------------------------------------------------------------------------------------------------------------

LATER...

I have it working with the stock puppy syslinux, but I left the images in, so the pet is now ~100M, remove the images and it will shrink dramatically. It still supports syslinux >= 4.0 but it needs to be installed separately.

NOTE: You must uninstall the previous version because the syslinux bins are in a non standard location and will be found by the script and bork installation. OR delete the directory /usr/share/syslinux_sp

SO now you can

  • load with stock syslinux with the limitation of no menu so you are restricted to one OS (pup) on the device, that will suit some users I guess
  • load an OS with the vesamenu as long as you install syslinux >=4.0
  • load another OS as a dual (and probably more will work too) boot without disturbing the originally loaded OS.


Here is the very simple code in syslinux.cfg that boots Upup or PHAT as a single OS on the device
Code:
default /${BOOTD}/vmlinuz initrd=/${BOOTD}/initrd.gz pmedia=ataflash psavemark=2
..where ${BOOTD} is the dir name of where the boot files are. The script works that out from the main sfs name, so if there is puppy_precise_3.8.3.sfs it becomes precise_3.8.3

Have fun!
f2fs-usb-installer-0.3-i686.pet
Description  includes images but NOT syslinux bins, get 'em from PPM
pet

 Download 
Filename  f2fs-usb-installer-0.3-i686.pet 
Filesize  101.79 KB 
Downloaded  608 Time(s) 

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
ETP


Joined: 19 Oct 2010
Posts: 586
Location: UK

PostPosted: Mon 25 Mar 2013, 11:27    Post subject: f2fs-usb-installer-0.3-i686.pet
Subject description: More testing.
 

Hi 01Micko,

Using Upup-Precise 3.8.3.1 I produced a hybrid SDHC which booted rapidly on the same netbook. This was using just the simple syslinux.cfg code which I think you are quite right to go with as it utilises what is already in most pups, gives maximum BIOS compatibility and is probably enough for most users who just want to quickly get to the puppy desktop.

_________________
Regards ETP
Accessibility Pups: -- Magoo -- The Pup With No Name -- MouseCam -- Obedient
Back to top
View user's profile Send private message 
pemasu


Joined: 08 Jul 2009
Posts: 5465
Location: Finland

PostPosted: Mon 25 Mar 2013, 11:35    Post subject:  

01micko. Almost in the topic. Eh...I am atm woofing Upup Ringtail. Do you have patch for gparted and ./configure options for gparted compile. I could give f2fs a try in Upup Ringtail....before it is up.up for upload.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 7841
Location: qld

PostPosted: Mon 25 Mar 2013, 16:01    Post subject:  

Hello pemasu

EDIT: gparted-15.0 gives troubles so stick to 14.1, just did a quick build in PHAT, iirc I had no issue in Upup Here is a link I uploaded all you need <-- http://www.smokey01.com/01micko/src/

NOTE: to use slackbuild, make sure everything is in the same folder, including src and patches and just run "./gparted.SlackBuild", it's very easy.



------------------------------------------------------------------------------------------------------

old original post
VVVVVVVVVVVVV

Here is modified SlackBuild

Code:
#!/bin/sh


# Copyright 2008, 2009, 2010, 2011, 2012  Patrick J. Volkerding, Sebeka, Minnesota, USA
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
#
#  THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
#  WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
#  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO
#  EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
#  SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
#  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
#  OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
#  WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
#  OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
#  ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PKGNAM=gparted
VERSION=0.14.1
BUILD=${BUILD:-2}
TAG=${TAG:-_pmagic}

CWD=$(pwd)
TMP=$CWD
PKG=$CWD/package-$PKGNAM

ARCH="i486"
SLKCFLAGS="-Os -march=i486 -mtune=i686"

NUMJOBS=${NUMJOBS:-"-j2"}

rm -rf $PKG
mkdir -p $TMP $PKG

cd $TMP
rm -rf $PKGNAM-$VERSION
tar xvf $CWD/$PKGNAM-$VERSION.tar.?z* || exit 1
cd $PKGNAM-$VERSION

chown -R root:root .
find . \
  \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
  -exec chmod 755 {} \; -o \
  \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
  -exec chmod 644 {} \;

# Patch GParted to use exfat-utils
patch -p1 < ../pmagic-exfat.diff

# Patch GParted to for f2fs support
patch -p1 < ../pmagic-f2fs.diff

CFLAGS=$SLKCFLAGS \
CXXFLAGS=$SLKCFLAGS \
./configure --prefix=/usr \
--sysconfdir=/etc \
--localstatedir=/var \
--disable-doc \
--build=$ARCH-pc-linux-gnu
 
# Build and install:
make $NUMJOBS || make || exit 1
make install DESTDIR=$PKG || exit 1

# Strip binaries:
( cd $PKG
  find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | \
  xargs strip --strip-unneeded --remove-section=.note --remove-section=.comment 2> /dev/null
  find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | \
  xargs strip --strip-unneeded --remove-section=.note --remove-section=.comment 2> /dev/null
)

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $TMP/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
cd $CWD

## Cleanup
#rm -fr $PKG &> /dev/null
#rm -fr $CWD/$PKGNAM-$VERSION &> /dev/null

## What is actually included in Parted Magic
#rm -fr $CWD/pmagic_root &> /dev/null
#installpkg --root $CWD/pmagic_root $CWD/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.txz

#rm -fr $CWD/pmagic_root/{var,usr/sbin/gparted,usr/share/{applications,icons,man}}

## Parted Magic only supports these locales
#mv $CWD/pmagic_root/usr/share/locale $CWD/pmagic_root/usr/share/locale_old
#mkdir $CWD/pmagic_root/usr/share/locale
#for i in de en_US es fr it ja nb pl pt_BR ru zh_CN zh_TW; do
   #if [ -e $CWD/pmagic_root/usr/share/locale_old/$i ]; then
      #cp -af $CWD/pmagic_root/usr/share/locale_old/$i $CWD/pmagic_root/usr/share/locale
   #fi
#done
#rm -fr $CWD/pmagic_root/usr/share/locale_old

#rm -f $CWD/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
#cp -a pmagic_root $PKG
#mkdir -p $PKG/install
#cat $CWD/slack-desc > $PKG/install/slack-desc
#cd $PKG
#makepkg -l y -c n $CWD/$PKGNAM-$VERSION-$ARCH-$BUILD$TAG.txz
#cd $CWD
## Cleanup
##rm -fr $PKG
##rm -fr pmagic_root


Just comment the "makepkg" stuff as you don't have it Razz

Just cd into the source dir when built and run new2dir or do it manually in the packag-gparted generated directory.

Get patches and src from http://beefdrapes.partedmagic.com/source/gparted/ BUT notice they updated to gparted-15.0 a matter of days ago, so if you run into troubles I'll post 14.1 source. It built against your *mm static libs fine.


NOTE: to use slackbuild, make sure everything is in the same folder, including src and patches and just run "./gparted.SlackBuild", it's very easy.


HTH

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 2 [17 Posts]   Goto page: 1, 2 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1608s ][ Queries: 12 (0.0042s) ][ GZIP on ]