Date: Wed, 27 Aug 2014 20:33:40 +0800 (CST) From: huoyingyangjie <huoyingyangjie@163.com> To: freebsd-questions@freebsd.org Subject: kgdb can't debug loadable model,need Experts Message-ID: <48cdc013.de68.14817750ca5.Coremail.huoyingyangjie@163.com>
next in thread | raw e-mail | index | archive | help
SSB1c2UgIHNlcmlhbCBwb3J0cyB0byBkZWJ1ZyB6ZnMua28gYmV0d2VlbiAgdHdvIHZpcnR1YWxi b3hzLiAgT25lIGlzIGZyZWVic2QgOC4zLCBvbmUgaXMgZnJlZWJzZCA5LjMuCgpBdCBmcmVlYnNk OC4zIDoKaSB0eXBlo7oKotlrYXJhcyMga2xkc3RhdApJZCBSZWZzIEFkZHJlc3MgICAgICAgICAg ICBTaXplICAgICBOYW1lCiAxICAgIDkgMHhmZmZmZmZmZjgwMTAwMDAwIGVhZTc2MCAgIGtlcm5l bAogMyAgICAxIDB4ZmZmZmZmZmY4MTAxMjAwMCAxN2E5ODggICB6ZnMua28KIDQgICAgMSAweGZm ZmZmZmZmODExOGQwMDAgMWZiNCAgICAgb3BlbnNvbGFyaXMua28KotprYXJhcyMgc3lzY3RsIGRl YnVnLmtkYi5lbnRlcj0xCmRlYnVnLmtkYi5lbnRlcjogMApBdCBmcmVlYnNkOS4zOgpJIHR5cGU6 CqLZcm9vdEB5YW5namllOi91c3Iva2VybmVsL2tlcm5lbCAjIGtnZGIgLXIgL2Rldi9jdWF1MCAu L2tlcm5lbApHTlUgZ2RiIDYuMS4xIFtGcmVlQlNEXQpDb3B5cmlnaHQgMjAwNCBGcmVlIFNvZnR3 YXJlIEZvdW5kYXRpb24sIEluYy4KR0RCIGlzIGZyZWUgc29mdHdhcmUsIGNvdmVyZWQgYnkgdGhl IEdOVSBHZW5lcmFsIFB1YmxpYyBMaWNlbnNlLCBhbmQgeW91IGFyZQp3ZWxjb21lIHRvIGNoYW5n ZSBpdCBhbmQvb3IgZGlzdHJpYnV0ZSBjb3BpZXMgb2YgaXQgdW5kZXIgY2VydGFpbiB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m5lbC96ZnMua28uc3ltYm9scy4uLmRvbmUuCmRvbmUuCkxvYWRlZCBzeW1ib2xzIGZvciAv Ym9vdC9rZXJuZWwvemZzLmtvCqLcKGtnZGIpIGIgemZzZGV2X2lvY3RsCk5vdGU6IGJyZWFrcG9p bnQgMSBhbHNvIHNldCBhdCBwYyAweGZmZmZmZmZmODEwYmE0ZTAuCkJyZWFrcG9pbnQgMiBhdCAw eGZmZmZmZmZmODEwYmE0ZTA6IGZpbGUgL3Vzci9zcmMvc3lzL21vZHVsZXMvemZzLy4uLy4uL2Nk ZGwvY29udHJpYi9vcGVuc29sYXJpcy91dHMvY29tbW9uL2ZzL3pmcy96ZnNfaW9jdGwuYywgbGlu ZSA1OTAyLgoKCqLdKGtnZGIpIGMKQ29udGludWluZy4KQXQgZnJlZWJzZDguMzoKSSBydW4gInpw b29sIHN0YXR1cyJvciJ6cG9vbCBjcmVhdGUgeWFuZ2ppZSByYWlkeiBhZDEgYWQyIGFkMyIuVGhl IHJlc3VsdHMgaXMgImtnZGIgZG9uJ3Qgc3RvcCIuSSB0cnkgbWFueSB0aW1lcy5Eb24ndCBzdWNj ZXNzZWQuSSBkb24ndCBrbm93IHdoeS4KV2hvIGNhbiBoZWxwIG1lPwoKCgoKCgoKCg== From owner-freebsd-questions@FreeBSD.ORG Wed Aug 27 14:25:19 2014 Return-Path: <owner-freebsd-questions@FreeBSD.ORG> Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id D53C06B4 for <questions@freebsd.org>; Wed, 27 Aug 2014 14:25:19 +0000 (UTC) Received: from server1.shellworld.net (shellworld.net [69.60.117.94]) by mx1.freebsd.org (Postfix) with ESMTP id B462A3925 for <questions@freebsd.org>; Wed, 27 Aug 2014 14:25:19 +0000 (UTC) Received: from server1.shellworld.net (localhost [127.0.0.1]) by server1.shellworld.net (Postfix) with ESMTP id CF67A228B7 for <questions@freebsd.org>; Wed, 27 Aug 2014 10:25:17 -0400 (EDT) To: "questions@freebsd.org" <questions@freebsd.org> Subject: Recreating the FreeBSD Installation Disks Date: Wed, 27 Aug 2014 09:25:17 -0500 From: "Martin G. McCormick" <martin@server1.shellworld.net> Message-Id: <20140827142517.CF67A228B7@server1.shellworld.net> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: User questions <freebsd-questions.freebsd.org> List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/> List-Post: <mailto:freebsd-questions@freebsd.org> List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help> List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-questions>, <mailto:freebsd-questions-request@freebsd.org?subject=subscribe> X-List-Received-Date: Wed, 27 Aug 2014 14:25:19 -0000 I have been asking lots of questions recently about whether the procedure for building a custom FreeBSD installation CD has changed and it apparently has not but the problem I am having is not hard to define. The original image downloaded from freebsd.org is: FreeBSD-9.1-RELEASE-amd64-disc1.iso and it is 718862336 bytes large. I mounted it on a FreeBSD9 system as follows: ##Set up memory disk. # mdconfig -f FreeBSD-9.1-RELEASE-amd64-disc1.iso -u 1 ##Mount it. #mount -t cd9660 /dev/md1 /mnt2 Everything looks normal if you ls /mnt2. If one was to use mkisofs with /mnt2 as the top of the tree, a new iso image file should appear somewhere that is about the same size as the starting ISO file. As a test to see if this happens, I did the following: # mkisofs -J -R -V customBSD -no-emul-boot -b boot/cdboot -iso-level 3 -o \ #/home/martin/tmp/serialcd64.iso . #ls -l /home/martin/serialcd64.iso -rw-r--r-- 1 root martin 833892352 Aug 26 10:48 serialcd64.iso Man! I sure wish my pay check could do that after a week of living. I know that hard links will make tar and rsync produce larger outputs if not called correctly. My understanding is that hard links are multiple sets of inode numbers pointing to the same files so they are hard to mechanically distinguish from actual disk space being occupied by the same data in more than one spot. When one needs to make a custom CD, the extremely difficult part is recreating the steps that were used to originally build the image. An amusing side note; I used rsync to create a writable copy of the tree as follows: #cd ./treetop #sudo rsync -a /mnt2/ ./ A few seconds later, I had something that built without a single complaint so I made an image out of treetop and got: #ls -l custom* -rw-r--r-- 1 martin martin 455213056 Aug 26 11:42 custom.iso That was the exact same file tree that insists on being 120 MB too large if you try to make a straight ISO image from the mounted file system of the original image which is about 300 MB larger than this one. That has been pretty much the story of the last few days and I am running out of things to try. The process for building the FreeBSD installation CD is clever since it manages to cram so much in to the limited space without compressing the entire image. So far, orthogonalness has escaped me at every turn. Martin McCormick
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?48cdc013.de68.14817750ca5.Coremail.huoyingyangjie>
