Make your own mini Linux OS

Linux内核安装与配置教程
本文详细介绍了如何从源代码下载、解压、配置、编译到最终创建ISO镜像并安装Linux内核的过程,包括下载Linux内核源代码、指定Makefile变量、创建ISO镜像以及网络设置等关键步骤。

Please follow the steps:

1,wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.24.4.tar.bz2

2,  tar jxvf  linux-2.6.24.4.tar.bz2

3 dowload the file: myOS.tar.gz

   http://download.youkuaiyun.com/source/3570140

4, specify the Makefile variables

      KERNEL_DIR      CONFI_FILE      LIB_INSTALL

5, Description:

   KERNEL_DIR : kernel file directory

   CONFI_FILE : linux  config file, you could use the default .config file (linux-2.6.24.4/arch/x86/configs/i386_defconfig)

   LIB_INSTALL: copy some necessary libaries from your compiling linux machine

   system : some necessary libaries and bin files including busybox to build a shell environment

6, cd iso and make

7, install the ISO 

8, logon your new OS and set network environment

     run the ./probemod.sh to load some drivers

     ifconfig eth0 ip1 netmask netmask1

     route add default gw gw1


参考:

http://www.syslinux.org/wiki/index.php/ISOLINUX


base dir D:\cs231n.github.io-master\assignments\2021\assignment3_colab\assignment3\cs231n\datasets/coco_captioning --------------------------------------------------------------------------- FileNotFoundError Traceback (most recent call last) Cell In[5], line 4 1 # Load COCO data from disk into a dictionary. 2 # We'll work with dimensionality-reduced features for the remainder of this assignment, 3 # but you can also experiment with the original features on your own by changing the flag below. ----> 4 data = load_coco_data(pca_features=True) 6 # Print out all the keys and values from the data dictionary. 7 for k, v in data.items(): File D:\cs231n.github.io-master\assignments\2021\assignment3_colab\assignment3\cs231n\coco_utils.py:12, in load_coco_data(base_dir, max_train, pca_features) 10 data = {} 11 caption_file = os.path.join(base_dir, "coco2017_captions.h5") ---> 12 with h5py.File(caption_file, "r") as f: 13 for k, v in f.items(): 14 data[k] = np.asarray(v) File D:\miniconda\lib\site-packages\h5py\_hl\files.py:564, in File.__init__(self, name, mode, driver, libver, userblock_size, swmr, rdcc_nslots, rdcc_nbytes, rdcc_w0, track_order, fs_strategy, fs_persist, fs_threshold, fs_page_size, page_buf_size, min_meta_keep, min_raw_keep, locking, alignment_threshold, alignment_interval, meta_block_size, **kwds) 555 fapl = make_fapl(driver, libver, rdcc_nslots, rdcc_nbytes, rdcc_w0, 556 locking, page_buf_size, min_meta_keep, min_raw_keep, 557 alignment_threshold=alignment_threshold, 558 alignment_interval=alignment_interval, 559 meta_block_size=meta_block_size, 560 **kwds) 561 fcpl = make_fcpl(track_order=track_order, fs_strategy=fs_strategy, 562 fs_persist=fs_persist, fs_threshold=fs_threshold, 563 fs_page_size=fs_page_size) --> 564 fid = make_fid(name, mode, userblock_size, fapl, fcpl, swmr=swmr) 566 if isinstance(libver, tuple): 567 self._libver = libver File D:\miniconda\lib\site-packages\h5py\_hl\files.py:238, in make_fid(name, mode, userblock_size, fapl, fcpl, swmr) 236 if swmr and swmr_support: 237 flags |= h5f.ACC_SWMR_READ --> 238 fid = h5f.open(name, flags, fapl=fapl) 239 elif mode == 'r+': 240 fid = h5f.open(name, h5f.ACC_RDWR, fapl=fapl) File h5py/_objects.pyx:56, in h5py._objects.with_phil.wrapper() File h5py/_objects.pyx:57, in h5py._objects.with_phil.wrapper() File h5py/h5f.pyx:102, in h5py.h5f.open() FileNotFoundError: [Errno 2] Unable to synchronously open file (unable to open file: name = 'D:\cs231n.github.io-master\assignments\2021\assignment3_colab\assignment3\cs231n\datasets/coco_captioning\coco2017_captions.h5', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
最新发布
07-29
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值