OpenCores
URL https://opencores.org/ocsvn/amber/amber/trunk

Subversion Repositories amber

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /amber
    from Rev 49 to Rev 48
    Reverse comparison

Rev 49 → Rev 48

/trunk/sw/vmlinux/vmlinux Cannot display: file marked as a binary type. svn:mime-type = application/octet-stream
/trunk/sw/vmlinux/README.txt
102,41 → 102,40
cd ${LINUX_WORK_DIR}
 
# Need root permissions to mount disks
sudo dd if=/dev/zero of=initrd bs=200k count=1
#sudo dd if=/dev/zero of=initrd bs=400k count=1
sudo mke2fs -F -m0 -b 1024 initrd
su root
dd if=/dev/zero of=initrd bs=200k count=1
mke2fs -F -m0 -b 1024 initrd
 
mkdir mnt
sudo mount -t ext2 -o loop initrd ${LINUX_WORK_DIR}/mnt
mount -t ext2 -o loop initrd ${LINUX_WORK_DIR}/mnt
 
# Add files
sudo mkdir ${LINUX_WORK_DIR}/mnt/sbin
sudo mkdir ${LINUX_WORK_DIR}/mnt/dev
sudo mkdir ${LINUX_WORK_DIR}/mnt/bin
sudo mkdir ${LINUX_WORK_DIR}/mnt/etc
sudo mkdir ${LINUX_WORK_DIR}/mnt/proc
sudo mkdir ${LINUX_WORK_DIR}/mnt/lib
mkdir ${LINUX_WORK_DIR}/mnt/sbin
mkdir ${LINUX_WORK_DIR}/mnt/dev
mkdir ${LINUX_WORK_DIR}/mnt/bin
mkdir ${LINUX_WORK_DIR}/mnt/etc
mkdir ${LINUX_WORK_DIR}/mnt/proc
mkdir ${LINUX_WORK_DIR}/mnt/lib
 
sudo mknod ${LINUX_WORK_DIR}/mnt/dev/console c 5 1
sudo mknod ${LINUX_WORK_DIR}/mnt/dev/tty2 c 4 2
sudo mknod ${LINUX_WORK_DIR}/mnt/dev/null c 1 3
sudo mknod ${LINUX_WORK_DIR}/mnt/dev/loop0 b 7 0
sudo chmod 600 ${LINUX_WORK_DIR}/mnt/dev/*
mknod ${LINUX_WORK_DIR}/mnt/dev/console c 5 1
mknod ${LINUX_WORK_DIR}/mnt/dev/tty2 c 4 2
mknod ${LINUX_WORK_DIR}/mnt/dev/null c 1 3
mknod ${LINUX_WORK_DIR}/mnt/dev/loop0 b 7 0
chmod 600 ${LINUX_WORK_DIR}/mnt/dev/*
 
sudo cp $AMBER_BASE/sw/hello-world/hello-world.flt ${LINUX_WORK_DIR}/mnt/sbin/init
#sudo cp $AMBER_BASE/sw/dhry/dhry.flt ${LINUX_WORK_DIR}/mnt/sbin/init
#sudo cp /proj/amber2-linux/busybox-1.18.5/busybox ${LINUX_WORK_DIR}/mnt/sbin/init
sudo chmod +x ${LINUX_WORK_DIR}/mnt/sbin/init
cp $AMBER_BASE/sw/hello-world/hello-world.flt ${LINUX_WORK_DIR}/mnt/sbin/init
#cp $AMBER_BASE/sw/dhry/dhry.flt ${LINUX_WORK_DIR}/mnt/sbin/init
chmod +x ${LINUX_WORK_DIR}/mnt/sbin/init
 
# Check
df ${LINUX_WORK_DIR}/mnt
 
# Unmount
sudo umount ${LINUX_WORK_DIR}/mnt
umount ${LINUX_WORK_DIR}/mnt
rm -rf ${LINUX_WORK_DIR}/mnt
exit # from being root
 
cp initrd $AMBER_BASE/sw/vmlinux/initrd-<my name>
#cp initrd $AMBER_BASE/sw/vmlinux/initrd-400k-busybox
 
---
 
/trunk/sw/boot-loader/start.S
209,13 → 209,13
.word ATAG_RAMDISK_SIZE
.word ATAG_RAMDISK
.word 1 @ flags: bit 0 = load, bit 1 = prompt
.word 0x000001a0 @ size in 1k blocks
.word 0x000000d0 @ size in 1k blocks
.word 0x00800000 @ physical address of start of ramdisk
 
.word ATAG_INITRD_SIZE
.word ATAG_INITRD
.word 0x02800000 @ virtual address of start of initrd image
.word 0x00064000 @ size = 200k
.word 0x00032000 @ size = 200k
.word ATAG_NONE
.word 0x0
/trunk/hw/tests/timeouts.txt
1,6 → 1,6
flow4 3936
tmp 2756
add 25
add 1716
adc 1440
sub 1536
sbc 2676
/trunk/hw/vlog/tb/tb.v
510,7 → 510,7
if (`U_TB.clk_count >= timeout)
begin
`TB_ERROR_MESSAGE
$display("Timeout Error. Edit $AMBER_BASE/hw/tests/timeouts.txt to change the timeout");
$display("Timeout Error");
end
// ======================================

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.