Date: Tue, 19 Feb 2013 02:47:54 -0800 (PST) From: =?iso-8859-1?Q?Muammer_Hamut=E7u?= <revivo73@yahoo.com> To: "Andrey V. Elsukov" <bu7cher@yandex.ru> Cc: "freebsd-ppc@freebsd.org" <freebsd-ppc@freebsd.org> Subject: Re: How to make APM disk which can be detected by Linux' GParted? Message-ID: <1361270874.34972.YahooMailNeo@web160703.mail.bf1.yahoo.com> References: <1360858013.53771.YahooMailNeo@web160704.mail.bf1.yahoo.com> <511D2E19.6020809@yandex.ru> <1361183920.93805.YahooMailNeo@web160706.mail.bf1.yahoo.com> <51223290.4070509@yandex.ru>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello=0A=0AThank you for the continued interest.=A0 I'd like to try it but = with my current FreeBSD PPC 8.2 CD and FreeBSD PPC Livefs CD, I couldn't do= it. =0A=0AFirst, the PPC Livefs CD doesn't have /usr/src=0A=0ASecond, it d= oesn't have the mdconfig command.=0A=0AI guess they are in FreeBSD i386 DVD= . I will try it on an Intel machine by plugging this 40GB IDE HDD through U= SB.=0A=0A=0A=0A________________________________=0A From: Andrey V. Elsukov = <bu7cher@yandex.ru>=0ATo: Muammer Hamut=E7u <revivo73@yahoo.com> =0ACc: "fr= eebsd-ppc@freebsd.org" <freebsd-ppc@freebsd.org> =0ASent: Monday, February = 18, 2013 3:54 PM=0ASubject: Re: How to make APM disk which can be detected = by Linux' GParted?=0A =0AOn 18.02.2013 14:38, Muammer Hamut=E7u wrote:=0A> = I have a clue on how to achieve a partition structure which GParted=0A> can= detect: http://d1302.hizliresim.com/16/f/k2fd8.jpg=0A=0AIt seems your part= ition table has not been created with gpart(8).=0AAnd probably this did the= trick.=0A=0AAs you can see, your APM metadata takes 14 sectors, but when y= ou use=0Agpart(8), by default it takes 18 sectors.=0A=0A> How could I remak= e such a partitioning, how is it done? Thanks.=0A=0AYou can patch your geom= _part_apm module:=0AIndex: /usr/src/sys/geom/part/g_part_apm.c=0A=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=0A--- /usr/src/sys/geom/part/g_p= art_apm.c=A0=A0=A0 (revision 241375)=0A+++ /usr/src/sys/geom/part/g_part_ap= m.c=A0=A0=A0 (working copy)=0A@@ -101,7 +101,7 @@ static struct g_part_sche= me g_part_apm_scheme =3D {=0A=A0=A0=A0 g_part_apm_methods,=0A=A0=A0=A0 size= of(struct=0A g_part_apm_table),=0A=A0=A0=A0 .gps_entrysz =3D sizeof(struct = g_part_apm_entry),=0A-=A0=A0=A0 .gps_minent =3D 16,=0A+=A0=A0=A0 .gps_minen= t =3D 12,=0A=A0=A0=A0 .gps_maxent =3D 4096,=0A};=0AG_PART_SCHEME_DECLARE(g_= part_apm);=0A=0AThe you can do:=0A# mdconfig -s 78140160=0A# gpart create -= s apm=A0 md0=0A# gpart add -b 64 -t apple-boot -s 2001 md0=0A# gpart add -t= freebsd-ufs -s 5859376 md0=0A# gpart add -t apple-ufs -s 1953126 md0=0A# g= part add -t freebsd-ufs -s 1171876 md0=0A# gpart add -t freebsd-ufs -s 1171= 876 md0=0A# gpart add -t freebsd-ufs -s 7812501 md0=0A# gpart add -t freebs= d-ufs -s 1171876 md0=0A# gpart add -b 19144704 -t apple-boot -s 2048 md0=0A= # gpart add -t apple-ufs -s 15624192 md0=0A# gpart add -t apple-ufs -s 1953= 792 md0=0A=0A# gpart show md0=0A=3D>=A0 =A0 =A0 14=A0 78140146=A0 md0=A0 AP= M=A0 (37G)=0A=A0 =A0 =A0 =A0 14=A0 =A0 =A0 =A0=0A 50=A0 =A0 =A0 - free -= =A0 (25k)=0A=A0 =A0 =A0 =A0 64=A0 =A0 =A0 2001=A0 =A0 1=A0 apple-boot=A0 (1= M)=0A=A0 =A0 =A0 2065=A0 5859376=A0 =A0 2=A0 freebsd-ufs=A0 (2.8G)=0A=A0 = 5861441=A0 1953126=A0 =A0 3=A0 apple-ufs=A0 (953M)=0A=A0 7814567=A0 1171= 876=A0 =A0 4=A0 freebsd-ufs=A0 (572M)=0A=A0 8986443=A0 1171876=A0 =A0 5= =A0 freebsd-ufs=A0 (572M)=0A=A0 10158319=A0 7812501=A0 =A0 6=A0 freebsd-uf= s=A0 (3.7G)=0A=A0 17970820=A0 1171876=A0 =A0 7=A0 freebsd-ufs=A0 (572M)=0A= =A0 19142696=A0 =A0 =A0 2008=A0 =A0 =A0 - free -=A0 (1M)=0A=A0 19144704=A0= =A0 =A0 2048=A0 =A0 8=A0 apple-boot=A0 (1.0M)=0A=A0 19146752=A0 15624192= =A0 =A0 9=A0 apple-ufs=A0 (7.5G)=0A=A0 34770944=A0 1953792=A0 10=A0 apple= -ufs=A0=0A (954M)=0A=A0 36724736=A0 41415424=A0 =A0 =A0 - free -=A0 (19G)= =0A=0A:)=0A=0A-- =0AWBR, Andrey V. Elsukov From owner-freebsd-ppc@FreeBSD.ORG Thu Feb 21 12:09:33 2013 Return-Path: <owner-freebsd-ppc@FreeBSD.ORG> Delivered-To: powerpc@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 0648815B9; Thu, 21 Feb 2013 12:09:33 +0000 (UTC) (envelope-from tinderbox@freebsd.org) Received: from freebsd-current.sentex.ca (freebsd-current.sentex.ca [64.7.128.98]) by mx1.freebsd.org (Postfix) with ESMTP id BA1E717D; Thu, 21 Feb 2013 12:09:32 +0000 (UTC) Received: from freebsd-current.sentex.ca (localhost [127.0.0.1]) by freebsd-current.sentex.ca (8.14.5/8.14.5) with ESMTP id r1LAXnYp096736; Thu, 21 Feb 2013 05:33:49 -0500 (EST) (envelope-from tinderbox@freebsd.org) Received: (from tinderbox@localhost) by freebsd-current.sentex.ca (8.14.5/8.14.5/Submit) id r1LAXn3d096735; Thu, 21 Feb 2013 10:33:49 GMT (envelope-from tinderbox@freebsd.org) Date: Thu, 21 Feb 2013 10:33:49 GMT Message-Id: <201302211033.r1LAXn3d096735@freebsd-current.sentex.ca> X-Authentication-Warning: freebsd-current.sentex.ca: tinderbox set sender to FreeBSD Tinderbox <tinderbox@freebsd.org> using -f Sender: FreeBSD Tinderbox <tinderbox@freebsd.org> From: FreeBSD Tinderbox <tinderbox@freebsd.org> To: FreeBSD Tinderbox <tinderbox@freebsd.org>, <current@freebsd.org>, <powerpc@freebsd.org> Subject: [head tinderbox] failure on powerpc/powerpc Precedence: bulk X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.14 List-Id: Porting FreeBSD to the PowerPC <freebsd-ppc.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-ppc>, <mailto:freebsd-ppc-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-ppc> List-Post: <mailto:freebsd-ppc@freebsd.org> List-Help: <mailto:freebsd-ppc-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-ppc>, <mailto:freebsd-ppc-request@freebsd.org?subject=subscribe> X-List-Received-Date: Thu, 21 Feb 2013 12:09:33 -0000 TB --- 2013-02-21 08:00:29 - tinderbox 2.10 running on freebsd-current.sentex.ca TB --- 2013-02-21 08:00:29 - FreeBSD freebsd-current.sentex.ca 8.3-PRERELEASE FreeBSD 8.3-PRERELEASE #0: Mon Mar 26 13:54:12 EDT 2012 des@freebsd-current.sentex.ca:/usr/obj/usr/src/sys/GENERIC amd64 TB --- 2013-02-21 08:00:29 - starting HEAD tinderbox run for powerpc/powerpc TB --- 2013-02-21 08:00:29 - cleaning the object tree TB --- 2013-02-21 08:00:29 - /usr/local/bin/svn stat /src TB --- 2013-02-21 08:00:32 - At svn revision 247073 TB --- 2013-02-21 08:00:33 - building world TB --- 2013-02-21 08:00:33 - CROSS_BUILD_TESTING=YES TB --- 2013-02-21 08:00:33 - MAKEOBJDIRPREFIX=/obj TB --- 2013-02-21 08:00:33 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-02-21 08:00:33 - SRCCONF=/dev/null TB --- 2013-02-21 08:00:33 - TARGET=powerpc TB --- 2013-02-21 08:00:33 - TARGET_ARCH=powerpc TB --- 2013-02-21 08:00:33 - TZ=UTC TB --- 2013-02-21 08:00:33 - __MAKE_CONF=/dev/null TB --- 2013-02-21 08:00:33 - cd /src TB --- 2013-02-21 08:00:33 - /usr/bin/make -B buildworld >>> Building an up-to-date make(1) >>> World build started on Thu Feb 21 08:00:38 UTC 2013 >>> Rebuilding the temporary build tree >>> stage 1.1: legacy release compatibility shims >>> stage 1.2: bootstrap tools >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3: cross tools >>> stage 4.1: building includes >>> stage 4.2: building libraries >>> stage 4.3: make dependencies >>> stage 4.4: building everything >>> World build completed on Thu Feb 21 10:24:38 UTC 2013 TB --- 2013-02-21 10:24:38 - generating LINT kernel config TB --- 2013-02-21 10:24:38 - cd /src/sys/powerpc/conf TB --- 2013-02-21 10:24:38 - /usr/bin/make -B LINT TB --- 2013-02-21 10:24:38 - cd /src/sys/powerpc/conf TB --- 2013-02-21 10:24:38 - /usr/sbin/config -m LINT TB --- 2013-02-21 10:24:38 - building LINT kernel TB --- 2013-02-21 10:24:38 - CROSS_BUILD_TESTING=YES TB --- 2013-02-21 10:24:38 - MAKEOBJDIRPREFIX=/obj TB --- 2013-02-21 10:24:38 - PATH=/usr/bin:/usr/sbin:/bin:/sbin TB --- 2013-02-21 10:24:38 - SRCCONF=/dev/null TB --- 2013-02-21 10:24:38 - TARGET=powerpc TB --- 2013-02-21 10:24:38 - TARGET_ARCH=powerpc TB --- 2013-02-21 10:24:38 - TZ=UTC TB --- 2013-02-21 10:24:38 - __MAKE_CONF=/dev/null TB --- 2013-02-21 10:24:38 - cd /src TB --- 2013-02-21 10:24:38 - /usr/bin/make -B buildkernel KERNCONF=LINT >>> Kernel build for LINT started on Thu Feb 21 10:24:38 UTC 2013 >>> stage 1: configuring the kernel >>> stage 2.1: cleaning up the object tree >>> stage 2.2: rebuilding the object tree >>> stage 2.3: build tools >>> stage 3.1: making dependencies >>> stage 3.2: building everything [...] cc -c -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/amdsmb.c cc -c -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/if_rl.c cc -c -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/intpm.c cc -c -O -pipe -std=c99 -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -Wmissing-include-dirs -fdiagnostics-show-option -nostdinc -I. -I/src/sys -I/src/sys/contrib/altq -I/src/sys/contrib/libfdt -D_KERNEL -DHAVE_KERNEL_OPTION_HEADERS -include opt_global.h -fno-common -finline-limit=15000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-builtin -msoft-float -Wa,-many -fno-omit-frame-pointer -msoft-float -mno-altivec -ffreestanding -fstack-protector -Werror /src/sys/pci/ncr.c /src/sys/pci/ncr.c: In function 'ncr_get_nccb': /src/sys/pci/ncr.c:6428: error: 's' undeclared (first use in this function) /src/sys/pci/ncr.c:6428: error: (Each undeclared identifier is reported only once /src/sys/pci/ncr.c:6428: error: for each function it appears in.) *** [ncr.o] Error code 1 Stop in /obj/powerpc.powerpc/src/sys/LINT. *** [buildkernel] Error code 1 Stop in /src. *** Error code 1 Stop in /src. TB --- 2013-02-21 10:33:49 - WARNING: /usr/bin/make returned exit code 1 TB --- 2013-02-21 10:33:49 - ERROR: failed to build LINT kernel TB --- 2013-02-21 10:33:49 - 7734.03 user 1011.88 system 9199.66 real http://tinderbox.freebsd.org/tinderbox-head-ss-build-HEAD-powerpc-powerpc.full
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1361270874.34972.YahooMailNeo>