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>
index | next in thread | previous in thread | raw e-mail
Hello Thank you for the continued interest. 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. First, the PPC Livefs CD doesn't have /usr/src Second, it doesn't have the mdconfig command. I guess they are in FreeBSD i386 DVD. I will try it on an Intel machine by plugging this 40GB IDE HDD through USB. ________________________________ From: Andrey V. Elsukov <bu7cher@yandex.ru> To: Muammer Hamutçu <revivo73@yahoo.com> Cc: "freebsd-ppc@freebsd.org" <freebsd-ppc@freebsd.org> Sent: Monday, February 18, 2013 3:54 PM Subject: Re: How to make APM disk which can be detected by Linux' GParted? On 18.02.2013 14:38, Muammer Hamutçu wrote: > I have a clue on how to achieve a partition structure which GParted > can detect: http://d1302.hizliresim.com/16/f/k2fd8.jpg It seems your partition table has not been created with gpart(8). And probably this did the trick. As you can see, your APM metadata takes 14 sectors, but when you use gpart(8), by default it takes 18 sectors. > How could I remake such a partitioning, how is it done? Thanks. You can patch your geom_part_apm module: Index: /usr/src/sys/geom/part/g_part_apm.c =================================================================== --- /usr/src/sys/geom/part/g_part_apm.c (revision 241375) +++ /usr/src/sys/geom/part/g_part_apm.c (working copy) @@ -101,7 +101,7 @@ static struct g_part_scheme g_part_apm_scheme = { g_part_apm_methods, sizeof(struct g_part_apm_table), .gps_entrysz = sizeof(struct g_part_apm_entry), - .gps_minent = 16, + .gps_minent = 12, .gps_maxent = 4096, }; G_PART_SCHEME_DECLARE(g_part_apm); The you can do: # mdconfig -s 78140160 # gpart create -s apm md0 # gpart add -b 64 -t apple-boot -s 2001 md0 # gpart add -t freebsd-ufs -s 5859376 md0 # gpart add -t apple-ufs -s 1953126 md0 # gpart add -t freebsd-ufs -s 1171876 md0 # gpart add -t freebsd-ufs -s 1171876 md0 # gpart add -t freebsd-ufs -s 7812501 md0 # gpart add -t freebsd-ufs -s 1171876 md0 # gpart add -b 19144704 -t apple-boot -s 2048 md0 # gpart add -t apple-ufs -s 15624192 md0 # gpart add -t apple-ufs -s 1953792 md0 # gpart show md0 => 14 78140146 md0 APM (37G) 14 50 - free - (25k) 64 2001 1 apple-boot (1M) 2065 5859376 2 freebsd-ufs (2.8G) 5861441 1953126 3 apple-ufs (953M) 7814567 1171876 4 freebsd-ufs (572M) 8986443 1171876 5 freebsd-ufs (572M) 10158319 7812501 6 freebsd-ufs (3.7G) 17970820 1171876 7 freebsd-ufs (572M) 19142696 2008 - free - (1M) 19144704 2048 8 apple-boot (1.0M) 19146752 15624192 9 apple-ufs (7.5G) 34770944 1953792 10 apple-ufs (954M) 36724736 41415424 - free - (19G) :) -- WBR, 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É9 -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-limit000 --param inline-unit-growth0 --param large-function-growth00 -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É9 -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-limit000 --param inline-unit-growth0 --param large-function-growth00 -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É9 -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-limit000 --param inline-unit-growth0 --param large-function-growth00 -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É9 -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-limit000 --param inline-unit-growth0 --param large-function-growth00 -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.fullhome | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1361270874.34972.YahooMailNeo>
